stc-localstorage

1.0.10 • Public • Published

todo

DEMO

var localstorage = require('stc-localstorage');
 
// var localstorageAdapter = require('stc-localstorage-smarty');
// var localstorageAdapter = require('stc-localstorage-php');
// var localstorageAdapter = require('stc-localstorage-ejs');
var localstorageAdapter = require('stc-localstorage-nunjucks');
 
stc.config({
  workers: 4,
  cluster: false,
  cache: false,
  include: ['template/', 'resource/'],
  tpl: {
    engine: 'nunjucks',
    extname: 'nunjucks',
    ld: ['{%', '{{'],
    rd: ['%}', '}}'],
  }
});
 
stc.workflow({
  Localstorage: {
    plugin: localstorage,
    include: /\.tpl$/,
    options: {
      adapter: localstorageAdapter,
      minLength : 200,
      appId : 'd8e8fca2'
    }
  },
});
 
stc.start();

Readme

Keywords

none

Package Sidebar

Install

npm i stc-localstorage

Weekly Downloads

8

Version

1.0.10

License

none

Last publish

Collaborators

  • welefen
  • qgy18