0.0.6 • Published 12 months ago

blended-lang v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

Blended-Lang

NPM Version NPM Downloads

Blended is a cross-platform template language spec that ensures compatibility with Django, Jinja, Twig & more. View the docs here.

Installation

npm install blended-lang

Documentation

See here.

Usage

Var env = new Blended.Environment();

env.renderString( ‘Hello {{ username }}’ ,{ username: ‘James’ });

You usually won't use renderString, instead you should write templates in individual files and use render. That way you can inherit and include templates.

env.render('index.html', { name: 'John' }); This will render content of ‘index.html’ with name “John”.

Tests

Run the tests with npm run test.

To run the default Nunjucks Test cases run the following command npm run test:default

How to Use Blended-Lint

npm install blended-lint

use command blended-lint filename data

where filename is the name of the file that need's to be validated and data is optinal argument which is any additional data you want's to pass.

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago

1.0.0

2 years ago