UPDATE: Here's a version using jade mixins. Sadly, I can't seem to find the "user" variable within the parenthesized attributes list of the "a" tag. Mixin userLink(user) a(href="/" + user)= user mixin userLink("Bob") mixin userLink("Alice") mixin userLink("Cooper") Generates this HTML Bob Alice Cooper Just put a helper function into your locals object and call it from the template locals = {userLink: function(userName) { return "Render('myview', {locals: locals}) Then in your jade template do: = userLink(user) You may also want to look at possibly registering a dynamicHelper function.
I'm using jadevu and jade on the client side, so that's not really a good option for me. I also want to keep templating stuff in the jade, rather than have it in the JS as well. – Harry Oct 20 at 18:44 Uh, if "templating stuff" involves functions, it ain't happening.
Code prepares the data, jade spits it into HTML. – Peter Lyons Oct 21 at 3:25 Isn't that the point of mixins though? How do you use mixins – Harry Oct 21 at 18:13 Ah, mixins is a new thing I haven't played around with much.
I'll update my answer, but jade doesn't seem to be referencing the mixin param within the attributes list. – Peter Lyons Oct 22 at 17:18.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.