tj / consolidate.js

Template engine consolidation library for node.js
3.48k stars 357 forks source link

Not working some tags on liquid #304

Open Jowrney opened 6 years ago

Jowrney commented 6 years ago

I'm always thanks your libs. I'm developing a site with liquid (cons.liquid). but some tag is not working on liquid code below: {% stylesheet 'scss' %} or {{ -17 | abs }} like that. I found that tinyliquid and liquid-node in your code. I think there libraries are not support liquid fully. so I wanna change to 'liquidjs', but I can't. How can I do? Please help me.

doowb commented 6 years ago

I was going to provide an example of how to use liquidjs but the liquid renderer function isn't following the same pattern as other engines.

I'm going to mark this as a bug and if you or anyone else would like to make a PR to fix the renderer function, it would be appreciated.

The main idea is that you should be able to do this to use a different engine for liquid:

cons.requires.liquid = require('liquidjs');