From 526cc046e4d5793a0dfac977474eda039853a983 Mon Sep 17 00:00:00 2001 From: Halton Huo Date: Tue, 1 Nov 2016 08:46:03 +0800 Subject: [PATCH] Add log option document. Related to https://github.com/olado/doT/pull/201 --- doT/index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doT/index.html b/doT/index.html index d993ca3..e9c4e0c 100644 --- a/doT/index.html +++ b/doT/index.html @@ -186,6 +186,13 @@

doT.template - template compilation function

By default, the produced function expects one parameter - data - with the name 'it'. The names and number of parameters can be changed by changing doT.templateSettings.varname

+

doT.log - option to enable/disable logging

+

This option is by default true, you can disable logging as below:

+
+var dots = require('dot');
+dots.log = false;
+
+

Node module supports auto-compilation of dot templates

You can precompile all your templates into modules compatible with commonJS, browsers and AMD.