News for hackers. Stuff that matters.
Re:Your templating engine sucks and everything you've ever w... by gnorsot on Sunday December 11, 2011 @12:31AM (#3339358)
I hate templating. There are just so many engines to choose from and you end up writing your own because none of them can do what you really need.
Re:Your templating engine sucks and everything you've ever w... by einhverfr on Sunday December 11, 2011 @01:39AM (#3339466)
Dude.... I get laughed at for the things I do with templates (html page with 20k input elements) until people realize what I am doing with them (a bulk payment interface for paying 5000 invoices in a compact workflow).

I have found that any complete templating system has sufficient flexibility and extensibility to do what you want. Though I use Perl's Template Toolkit.

Re:Your templating engine sucks and everything you've ever w... by peteforde on Sunday December 11, 2011 @01:18AM (#3339430)
It's a drag when what you're working on is such a unique snowflake that nothing really smart teams have worked on for years is able to help you.

I'm going to abuse a Bruce Schneier quote and suggest that if you're trying to get a job done and you start by writing a template interpreter, you're doing it wrong.

Re:Your templating engine sucks and everything you've ever w... by ronreiter on Sunday December 11, 2011 @12:55AM (#3339402)
What are you building there? A nuclear reactor?
Re:Your templating engine sucks and everything you've ever w... by einhverfr on Sunday December 11, 2011 @01:53AM (#3339497)
Probably a web-based one at that.
Re:Your templating engine sucks and everything you've ever w... by zobzu on Sunday December 11, 2011 @02:08AM (#3339517)
Show HN: our HTML5 nuclear reactor.

Oh dear. "BUT, ITS SANDBOXED ITS OK!" :)

Re:Your templating engine sucks and everything you've ever w... by einhverfr on Sunday December 11, 2011 @05:30AM (#3339796)
Only functions properly on worstations powered by Intel Unobtanium Chips ;-)
Re:Your templating engine sucks and everything you've ever w... by grandpoobah on Sunday December 11, 2011 @01:43AM (#3339475)
Find the syntax you are most comfortable with and you'll always find something inspired by it in your next language.

As someone who really loved Jinja2 templates, I was very pleased to find Swig on Node.