Code Monkey home page Code Monkey logo

Comments (6)

sindresorhus avatar sindresorhus commented on July 29, 2024

Sure, pull request welcome :)

You can see how it's implemented here:
https://github.com/sindresorhus/gulp-template/blob/cec7e127bf1acf371c33f1a5beec0f7b3b6e329d/index.js#L21
https://github.com/sindresorhus/gulp-template/blob/cec7e127bf1acf371c33f1a5beec0f7b3b6e329d/test.js#L23-L176

from gulp-nunjucks.

bnjmnt4n avatar bnjmnt4n commented on July 29, 2024

Will work on it and send it in soon ;)

from gulp-nunjucks.

bnjmnt4n avatar bnjmnt4n commented on July 29, 2024

Hmm, appears I read the readme wrongly. I thought this plugin was used to compile Nunjucks templates, didn't realise it was used for precompiling only. I'm not too sure about gulp plugins, should I create another one or just add it as a feature for this plugin?

from gulp-nunjucks.

sindresorhus avatar sindresorhus commented on July 29, 2024

Add it as a feature. See gulp-template on how it was done there ;)

from gulp-nunjucks.

bnjmnt4n avatar bnjmnt4n commented on July 29, 2024

from gulp-nunjucks.

sindresorhus avatar sindresorhus commented on July 29, 2024

I would go with nunjucks.compile and nunjucks.precompile and preserve nunjucks for backwards compatibility.

from gulp-nunjucks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.