开发者

Liquid templating for Node.js [closed]

开发者 https://www.devze.com 2023-02-19 03:06 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_StackOverflow社区

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question

Does anyone know if there are any ports of Liquid Templating for Node.js? Or anything like it?

More or less our goal is to port Jekyll to Node.js - so anything to help with the templating side will be appreciated :)


There are a few versions in js I've run across - the only node-specific port I have seen is Liquid Node which is compatible with node's async programming


Thanks guys.

Ended up using eco as the templating engine.

For the layouts-in-layouts of Jekyll as well as the YAML headers of template files I coded my own: http://docpad.org


As I said in a comment, it appears that Liquid has a syntax similar to Jinja2 or Django templates. Some people seem to have ported some of those templating languages:

  • Djangode (see the templates part; it contains other things, too)
  • Strobe

In addition, there seems to be a large collection of other templating languages on the Node wiki.


There are a few similar libraries with varying features, these are two that support inline filters:

  • ejs
  • dustjs
0

精彩评论

暂无评论...
验证码 换一张
取 消