dragon-engine

0.1.0 • Public • Published

dragon

dragon es un pequeño motor de plantilla, que consta de funcionales como control de flujo, incluir y extender plantillas, manejando la indentacion al abrir y cerrar etiquetas dragon. funciona tanto como para Node.js y navegadores

Installation

via npm

$ npm install dragon-engine

Syntax

the dragon templates are handled by indentation

<div>
    <? if str instanceof String ?>
        <p>my indented content</p>
    <? else ?>
        <p>not string</p>
    <? endif ?>
</div>

output

<div>
        <p>my indented content</p>
</div>

Usage

var html = dragon.compile(/*html*/'<?= str ?>', /*data*/ {
    str: 'hello'
});

License

MIT

Package Sidebar

Install

npm i dragon-engine

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • nikemadrid