digitalmars.D.learn - template library like Jinja
- Tobias Pankrath (3/3) Nov 20 2012 Is there any template library like Jinja? (jinja.pocoo.org).
- Jacob Carlborg (6/9) Nov 20 2012 vibe.d uses Jade templates.
- Tobias Pankrath (2/11) Nov 20 2012 I don't want to generate xml/html but code. :-)
- Jacob Carlborg (4/5) Nov 20 2012 Isn't Jinja for HTML? It looks like it is.
- Tobias Pankrath (3/6) Nov 20 2012 Except for (optional) html escaping it has no special support for any
- Jacob Carlborg (4/6) Nov 20 2012 Ok, I didn't know that.
- Masahiro Nakagawa (8/11) Nov 21 2012 I'm not familiar with Jinja.
- Tobias Pankrath (2/13) Nov 21 2012 That looks good!
- Brian (3/15) Dec 08 2016 jinja2 or twig better to use!
Is there any template library like Jinja? (jinja.pocoo.org). I'm pretty sure we can do even better by leveraging CTFE and a precompiler, but speed is no concern for me.
Nov 20 2012
On 2012-11-20 12:38, Tobias Pankrath wrote:Is there any template library like Jinja? (jinja.pocoo.org). I'm pretty sure we can do even better by leveraging CTFE and a precompiler, but speed is no concern for me.vibe.d uses Jade templates. Jade: http://jade-lang.com vibe.d: http://vibed.org -- /Jacob Carlborg
Nov 20 2012
On 20.11.2012 13:48, Jacob Carlborg wrote:On 2012-11-20 12:38, Tobias Pankrath wrote:I don't want to generate xml/html but code. :-)Is there any template library like Jinja? (jinja.pocoo.org). I'm pretty sure we can do even better by leveraging CTFE and a precompiler, but speed is no concern for me.vibe.d uses Jade templates. Jade: http://jade-lang.com vibe.d: http://vibed.org
Nov 20 2012
On 2012-11-20 14:31, Tobias Pankrath wrote:I don't want to generate xml/html but code. :-)Isn't Jinja for HTML? It looks like it is. -- /Jacob Carlborg
Nov 20 2012
On 20.11.2012 15:15, Jacob Carlborg wrote:On 2012-11-20 14:31, Tobias Pankrath wrote:Except for (optional) html escaping it has no special support for any text format. HTML is the biggest use case though.I don't want to generate xml/html but code. :-)Isn't Jinja for HTML? It looks like it is.
Nov 20 2012
On 2012-11-20 16:25, Tobias Pankrath wrote:Except for (optional) html escaping it has no special support for any text format. HTML is the biggest use case though.Ok, I didn't know that. -- /Jacob Carlborg
Nov 20 2012
On Tuesday, 20 November 2012 at 11:38:46 UTC, Tobias Pankrath wrote:Is there any template library like Jinja? (jinja.pocoo.org). I'm pretty sure we can do even better by leveraging CTFE and a precompiler, but speed is no concern for me.I'm not familiar with Jinja. So I may not meet your expectation, but I have the D version of Mustache template engine. https://github.com/repeatedly/mustache4d http://mustache.github.com/ Masahiro
Nov 21 2012
On 21.11.2012 21:56, Masahiro Nakagawa wrote:On Tuesday, 20 November 2012 at 11:38:46 UTC, Tobias Pankrath wrote:That looks good!Is there any template library like Jinja? (jinja.pocoo.org). I'm pretty sure we can do even better by leveraging CTFE and a precompiler, but speed is no concern for me.I'm not familiar with Jinja. So I may not meet your expectation, but I have the D version of Mustache template engine. https://github.com/repeatedly/mustache4d http://mustache.github.com/ Masahiro
Nov 21 2012
On Wednesday, 21 November 2012 at 20:56:04 UTC, Masahiro Nakagawa wrote:On Tuesday, 20 November 2012 at 11:38:46 UTC, Tobias Pankrath wrote:jinja2 or twig better to use!Is there any template library like Jinja? (jinja.pocoo.org). I'm pretty sure we can do even better by leveraging CTFE and a precompiler, but speed is no concern for me.I'm not familiar with Jinja. So I may not meet your expectation, but I have the D version of Mustache template engine. https://github.com/repeatedly/mustache4d http://mustache.github.com/ Masahiro
Dec 08 2016