Nunjucks 1.0.1
dotnet add package Nunjucks --version 1.0.1
NuGet\Install-Package Nunjucks -Version 1.0.1
<PackageReference Include="Nunjucks" Version="1.0.1" />
paket add Nunjucks --version 1.0.1
#r "nuget: Nunjucks, 1.0.1"
// Install Nunjucks as a Cake Addin #addin nuget:?package=Nunjucks&version=1.0.1 // Install Nunjucks as a Cake Tool #tool nuget:?package=Nunjucks&version=1.0.1
You've been looking for a more sophisticated templating engine for JavaScript. Here it is.
- Rich Powerful language with block inheritance, autoescaping, macros, asynchronous control, and more. Heavily inspired by jinja2
- Fast & Lean High-performant. Small 8K gzipped runtime with precompiled templates in the browser
- Extensible Crazy extensible with custom filters and extensions
- Everywhere Available in node and all modern web browsers, with thorough precompilation options
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 171 | 1/28/2014 |
v1.0.1 (December 16, 2013)
This is mostly bugfix and code cleanup release. The only added things are:
- New `nunjucks.compile` function which takes a string and returns a `Template` object
- The `urlize` filter has been added
v1.0.0 (October 24, 2013)
We've hit 1.0! Thanks for helping nunjucks stabilize and become
awesome. I've added many good features recently and several people
have been using them, and everything seems stable. I think it's time
to cut 1.0.
Big changes:
- An asynchronous API is now available, and async filters, extensions, and
loaders is supported. The async API is optional and if you don't do
anything async (the default), nothing changes for you. You can read
more about this https://jlongster.github.io/nunjucks/api.html#asynchronous-support
- Much simpler higher-level API for initiating/configuring nunjucks is
available. Read more https://jlongster.github.io/nunjucks/api.html#simple-api
- An official grunt plugin is available for precompiling templates: [grunt-nunjucks](https://github.com/jlongster/grunt-nunjucks)
- The browser files have been renamed**. nunjucks.js is now the full
library with compiler, and nunjucks-slim.js is the small version
that only works with precompiled templates
Smaller changes:
- urlencode filter has been added
- The express integration has been refactored and isn't a kludge
anymore. Should avoid some bugs and be more future-proof;
- The order in which variables are lookup up in the context and frame
lookup has been reversed. It will now look in the frame first, and
then the context. This means that if a `for` loop introduces a new
var, like `{% for name in names %}`, and if you have `name` in the
context as well, it will properly reference `name` from the for loop
inside the loop. (fixes #122 and #119)