templayed

WebJar for templayed

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

templayed
Последняя версия

Последняя версия

0.2.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

templayed
WebJar for templayed
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/heldr/node-templayed

Скачать templayed

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/templayed/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>templayed</artifactId>
    <version>0.2.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/templayed/
implementation 'org.webjars.npm:templayed:0.2.3'
// https://jarcasting.com/artifacts/org.webjars.npm/templayed/
implementation ("org.webjars.npm:templayed:0.2.3")
'org.webjars.npm:templayed:jar:0.2.3'
<dependency org="org.webjars.npm" name="templayed" rev="0.2.3">
  <artifact name="templayed" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='templayed', version='0.2.3')
)
libraryDependencies += "org.webjars.npm" % "templayed" % "0.2.3"
[org.webjars.npm/templayed "0.2.3"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

node-templayed

A simple port of templayed.js for node.js

The fastest and smallest Mustache compliant Javascript templating library See more

Getting Started

Install it just running npm install templayed into your project.

HOW TO USE

var templayed = require('templayed');

var tpl  = "<ul>{{#names}}<li>{{../fullName}}</li>{{/names}}</ul>",
    data = {
        names: [{firstName: "Paul", lastName: "Engel"}, {firstName: "Chunk", lastName: "Norris"}],
        fullName: function() {
            return this.lastName + ", " + this.firstName;
        }
    };

var html = templayed(tpl)(data);

console.log( html ); //=> "<ul><li>Engel, Paul</li><li>Norris, Chunk</li></ul>";

CREDITS

Paul Engel and Helder Santana

Версии библиотеки

Версия
0.2.3