fchasen / gulp-liquify Goto Github PK
View Code? Open in Web Editor NEWGulp Liquid Plugin, using Tinyliquid
Gulp Liquid Plugin, using Tinyliquid
The option to include custom filters is nice, and works well.
Is it possible to extend gulp-liquify to also allow for custom tags?
For faster development Liquid allows you to ignore the .liquid extension in an include.
This doesn't seem to be the case with gulp-liquify.
Or am I doing something wrong?
I just find out that this lastest commit with Filters added is not updated on the NPM repository.
45867f9#diff-947bd3ae7a9b284098c45696f7b8ed42
At the momento I'll try to use this github versión but if anyone know how to update that package I think it would be nice.
I'm building a Gulp workflow that lets me preview Shopify templates locally. TinyLiquid supports custom tags and filters, but gulp-liquify does not.
It would be nice if an entire context could be passed to the liquify()
function, instead of just locals. https://github.com/fchasen/gulp-liquify/blob/master/liquify.js#L6
current:
var liquify = function(contents, locals, includeBase, prefix){
var context = tinyliquid.newContext({
locals: locals
});
instead:
var liquify = function(contents, locals, includeBase, prefix, extraContext){
var context = tinyliquid.newContext(extraContext || {});
for (var key in locals) {
context.setLocals(key, locals[key]);
}
I'm not a programmer and new to node. I need to compile liquid files to html files.
I want to run liquid on a few .html
files, but I'm getting the following error:
Possibly unhandled Error: ENOENT, open './patterns/00-atoms/test.liquid'
.. when converting a file named ./patterns/00-atoms/test.html
. It's weird, because I can't see that extension hardcoded anywhere in this lib?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.