PHP Classes

File: test/03-literal-code/test.js

Recommend this page to a friend!
  Classes of Nikos M.   Contemplate   test/03-literal-code/test.js   Download  
File: test/03-literal-code/test.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Contemplate
Template engine that provides programming controls
Author: By
Last change:
Date: 1 year ago
Size: 400 bytes
 

Contents

Class file image Download
"use strict"; const Contemplate = require(__dirname+'/../../src/js/Contemplate.js'); // global ctx Contemplate.setCacheDir(__dirname); Contemplate.setCacheMode(Contemplate.CACHE_TO_DISK_AUTOUPDATE); Contemplate.add({'test' : __dirname+'/test.html'}); Contemplate.tplPromise('test', {'list':[1,2,3]}).then(content => console.log(content)); //console.log(Contemplate.tpl('test', {'list':[1,2,3]}));