nav tabs on admin dashboard
This commit is contained in:
+6
-9
@@ -32,12 +32,15 @@
|
||||
- [mote](https://github.com/satchmorun/mote) [(website)](http://satchmorun.github.io/mote/)
|
||||
- [mustache](https://github.com/janl/mustache.js)
|
||||
- [nunjucks](https://github.com/mozilla/nunjucks) [(website)](https://mozilla.github.io/nunjucks)
|
||||
- [plates](https://github.com/flatiron/plates)
|
||||
- [pug (formerly jade)](https://github.com/pugjs/pug) [(website)](http://jade-lang.com/)
|
||||
- [QEJS](https://github.com/jepso/QEJS)
|
||||
- [ractive](https://github.com/Rich-Harris/Ractive)
|
||||
- [react](https://github.com/facebook/react)
|
||||
- [slm](https://github.com/slm-lang/slm)
|
||||
- [swig (unmaintained)](https://github.com/paularmstrong/swig)
|
||||
- [swig (maintained fork)](https://github.com/node-swig/swig-templates)
|
||||
- [teacup](https://github.com/goodeggs/teacup)
|
||||
- [templayed](http://archan937.github.com/templayed.js/)
|
||||
- [twig](https://github.com/justjohn/twig.js)
|
||||
- [liquid](https://github.com/leizongmin/tinyliquid) [(website)](http://liquidmarkup.org/)
|
||||
@@ -103,15 +106,9 @@ cons.swig('views/page.html', { user: 'tobi' })
|
||||
|
||||
## Caching
|
||||
|
||||
To enable or disable caching simply pass `{ cache: true/false }`. Engines _may_ use this option to cache things reading the file contents, compiled `Function`s etc. Engines which do _not_ support this may simply ignore it. All engines that consolidate.js implements I/O for will cache the file contents, ideal for production environments.
|
||||
|
||||
```js
|
||||
var cons = require('consolidate');
|
||||
cons.swig('views/page.html', { cache: false, user: 'tobi' }, function(err, html){
|
||||
if (err) throw err;
|
||||
console.log(html);
|
||||
});
|
||||
```
|
||||
To enable caching simply pass `{ cache: true }`. Engines _may_ use this option to cache things reading the file contents, compiled `Function`s etc. Engines which do _not_ support this may simply ignore it. All engines that consolidate.js implements I/O for will cache the file contents, ideal for production environments.
|
||||
When using consolidate directly: `cons.swig('views/page.html', { user: 'tobi', cache:true }, callback);`
|
||||
Using Express 3 or higher: `app.locals.cache = true` or set NODE_ENV to 'production' and Express will do this for you.
|
||||
|
||||
## Express 3.x example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user