UNPKG

liquid-node

Version:

Node.js port of Tobias Lütke's Liquid template engine.

13 lines (10 loc) 280 B
module.exports = class Tag constructor: (@tagName, @markup, tokens, @template) -> @parse(tokens) parse: (tokens) -> name: -> tagName = /^function (\w+)\(/.exec(@constructor.toString())?[1] tagName or= 'UnknownTag' tagName.toLowerCase() render: -> ""