PHP Classes

File: test/test-delims.js

Recommend this page to a friend!
  Classes of Nikos M.  >  Grammar Template  >  test/test-delims.js  >  Download  
File: test/test-delims.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Grammar Template
Template engine in PHP and other languages
Author: By
Last change:
Date: 2 years ago
Size: 507 bytes


Class file image Download
var GrammarTemplate = require("../src/js/GrammarTemplate.js"), echo = console.log;

echo('GrammarTemplate.VERSION = ' + GrammarTemplate.VERSION);
echo( );

var tpl = "\\\\[var]\n\\[[var2]\\][[ \\[[var2]*\\]]][[# comment #]]\n[foo]\\?[foo] ?";

var grm = new GrammarTemplate( tpl, ['[',']','[[',']]'], true );
echo("input template:");

echo( );

    "foo"   : "foo",
    "var"   : "var",
    "var2"  : [
For more information send a message to info at phpclasses dot org.