{"_id":"mimosa-server-template-compile","_rev":"26-c66f5c311ce3fcf4720d0e28a336cc4b","name":"mimosa-server-template-compile","description":"A mimosa module for compiling server templates as part of a build","dist-tags":{"latest":"0.7.0"},"versions":{"0.1.0":{"name":"mimosa-server-template-compile","preferGlobal":"false","version":"0.1.0","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"logmimosa":"0.2.1","lodash":"1.0.0-rc.2","wrench":"1.4.4","consolidate":"0.5.0"},"license":"MIT","engines":{"node":">=0.8"},"_id":"mimosa-server-template-compile@0.1.0","dist":{"shasum":"f29d06aff7ddc3f0038793d31d41fe1090441d68","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.1.0.tgz","integrity":"sha512-krCTS/Dx7J71ojToVP8qTIIM9TcHaI03z2T01aWlEGg7s7KCJdyAtcHbrVOJjTELmMjZNRkE55tXr3uKSoPlWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9jaQx7xDIvvzcqZJUfSJRGg2w72mwjmIaH+6HDqTsJgIhAKqtLP1/B7xdzGUzuUyba0tNaoh3Qs+vprIT0vkWAbDx"}]},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.2.0":{"name":"mimosa-server-template-compile","preferGlobal":"false","version":"0.2.0","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"logmimosa":"0.3.0","lodash":"1.0.0-rc.3","wrench":"1.4.4","consolidate":"0.7.0"},"license":"MIT","engines":{"node":">=0.8"},"_id":"mimosa-server-template-compile@0.2.0","dist":{"shasum":"9cdf4a95e2361ff8844c6a7f5d5be29965aa0825","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.2.0.tgz","integrity":"sha512-X2P4hrzysmFG8Qzgj+29mlzxLRsc58wSuGdIACkBChyuh49vJ0t6daKYK/H1Pu1FUBv1tK1+LoTdWVm1XFX7JQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUVQXzr941J8Vrb8LDx7kWYyC7m9jY/ofxu7+bJXzDrAiEAn4aT9l1ioEldE9+KhrilqSxAksiMKQekUpV5gJD2FgU="}]},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.3.0":{"name":"mimosa-server-template-compile","preferGlobal":"false","version":"0.3.0","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"logmimosa":"0.3.0","lodash":"1.0.0-rc.3","wrench":"1.4.4","consolidate":"0.7.0"},"license":"MIT","engines":{"node":">=0.8"},"_id":"mimosa-server-template-compile@0.3.0","dist":{"shasum":"c5ec59d5d10fe852eaa04f229106770f584068d4","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.3.0.tgz","integrity":"sha512-dXrCVtivzG0/dxLGY+s32HzCuVw/ii+5UmSwc4Bi3SspEN1pIJi6i1mQM5/rWzbGiL+qAAB96cZS6B6FssI62w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFJwf324yxQIhV/tXsHHKn1xPlvA1deLmDjjLe8HWiv/AiAX6yl8cD/B5YxEKw0fafaYApcQ8w+UW9Pur/LvroRERQ=="}]},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.3.1":{"name":"mimosa-server-template-compile","version":"0.3.1","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"logmimosa":"0.3.1","lodash":"1.0.0-rc.3","wrench":"1.4.4","consolidate":"0.7.0"},"license":"MIT","engines":{"node":">=0.8"},"_id":"mimosa-server-template-compile@0.3.1","dist":{"shasum":"28c16bf9196ad8512f137abf62fa6e310971325e","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.3.1.tgz","integrity":"sha512-rJ9kVeTmLhIu1dJSRuQKpHgaEOawx74GWw0Hg3wSVsNRc7lACdELEmI3mLrdF2lttccVJDaukZlk3s5p/mpLZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID1X7bgsV/Qfmg1id8m/wy9jfYxI5nDUo7Yjv1g6aSUSAiALCQ7ByGjO+aE11HdXZd0pOeQR+1AnhaeAChSeAbF7TA=="}]},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.3.2":{"name":"mimosa-server-template-compile","version":"0.3.2","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"logmimosa":"0.4.0","lodash":"1.0.0-rc.3","wrench":"1.4.4","consolidate":"0.8.0"},"license":"MIT","engines":{"node":">=0.8"},"_id":"mimosa-server-template-compile@0.3.2","dist":{"shasum":"3b4da5b406d962f57057048a99a0be9b838718cc","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.3.2.tgz","integrity":"sha512-XBeuyiPGzs0C/fYhkleOX2Md7+MS89p1yY8Sujtyi8aKqWUxeLAktatHGBkhDx+RamboGO/eX9d9HMsr6iYT4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9M5ZfmGEew7laND4DRXDqd/9C5nT2wMjk4PRoavV5sgIhANuw7TJRWTl2B5zMeTRkPBpcRPB0QTcdV1PLTYFK2CsJ"}]},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.4.0":{"name":"mimosa-server-template-compile","version":"0.4.0","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"logmimosa":"0.5.0","lodash":"1.2.1","wrench":"1.5.1","consolidate":"0.9.1"},"license":"MIT","engines":{"node":">=0.8"},"main":"./lib/index","scripts":{"prepublish":"mimosa build"},"_id":"mimosa-server-template-compile@0.4.0","dist":{"shasum":"2db1c54ab7548c49c1045fe41955c148be762edb","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.4.0.tgz","integrity":"sha512-fkgE7Yy/Uo8weenEARnWj7tgFQy72u8STy4Zjcu+0Ue3jiBG93ga4O0TAWnCdWyHiI9eO9DHsbJ/77Wa0pH9vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA5Ui6jCjbTptbSk6mExbI/uvfeEwlb99zewt6l0/cqBAiAHnu7RMDBi+fNFwqe+UK6S01xl3A7ZxiUDVOTtpC0bgg=="}]},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"dbashford","email":"dbashford@hotmail.com"},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.4.1":{"name":"mimosa-server-template-compile","version":"0.4.1","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"logmimosa":"0.5.0","lodash":"1.2.1","wrench":"1.5.1","consolidate":"0.9.1","jade":"0.35.0","handlebars":"1.0.12","hogan.js":"2.0.0","ejs":"0.8.4"},"license":"MIT","engines":{"node":">=0.8"},"main":"./lib/index","scripts":{"prepublish":"mimosa build"},"bugs":{"url":"https://github.com/dbashford/mimosa-server-template-compile/issues"},"_id":"mimosa-server-template-compile@0.4.1","dist":{"shasum":"fa622455b5ed1969771007bc63c0777bb29bf513","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.4.1.tgz","integrity":"sha512-o5WDV/+qEBdL3Gw6OaTIKBDK09Rcfe2VjIUq69OlcB/ojOdHQ4D4YPI7iomRnMN4XG7W2IIv7svdKRV/fcZdwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA5bkEwSMx3eG191oLQW4IsK3qtuMSHJ/+IbWjg9FCeFAiEAmol/u+Fd8bXYbCTqA0C6sR81r61V+KvoVRTATD7Re6I="}]},"_from":".","_npmVersion":"1.3.9","_npmUser":{"name":"dbashford","email":"dbashford@hotmail.com"},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.5.0":{"name":"mimosa-server-template-compile","version":"0.5.0","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"lodash":"1.2.1","wrench":"1.5.6","consolidate":"0.10.0","jade":"0.35.0","handlebars":"1.3.0","hogan.js":"2.0.0","ejs":"0.8.5"},"license":"MIT","engines":{"node":">=0.8"},"main":"./lib/index","scripts":{"prepublish":"mimosa build"},"bugs":{"url":"https://github.com/dbashford/mimosa-server-template-compile/issues"},"_id":"mimosa-server-template-compile@0.5.0","dist":{"shasum":"bcebfbace54621806117086535c2767866987d36","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.5.0.tgz","integrity":"sha512-kTj28jbW5sJFFqamyybxFwAI+dRfaek0sMd3YpWZflFbdHxFMafI/Pg8O/Q3L/vAJsehddddI1YCykSU9/El2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTfOtiOfqKHJ6MON2fDsch66wy64eBDWHMNV+2+b/vpgIgKNR5gt2ZrthvwXmqOT+51BqIxXTQULH91/GorFybbU8="}]},"_from":".","_npmVersion":"1.3.9","_npmUser":{"name":"dbashford","email":"dbashford@hotmail.com"},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.5.1":{"name":"mimosa-server-template-compile","version":"0.5.1","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"lodash":"1.2.1","wrench":"1.5.6","consolidate":"0.10.0","jade":"0.35.0","handlebars":"1.3.0","hogan.js":"2.0.0","ejs":"0.8.5"},"license":"MIT","engines":{"node":">=0.8"},"main":"./lib/index","scripts":{"prepublish":"mimosa build"},"bugs":{"url":"https://github.com/dbashford/mimosa-server-template-compile/issues"},"_id":"mimosa-server-template-compile@0.5.1","dist":{"shasum":"24085db5d8bcfc437d06aa205f6dc558fda725bd","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.5.1.tgz","integrity":"sha512-VBT1xMZdbBMBZavGGldiBSsa/9bkNVwB15ofrT/BMQkFWf9iJmSr3xSlMJTJTwHRPFO8AkiN1mSJBVFh1IwEow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHfZICc9t2imv9EX33uXhiDsEM1IR0QCJ/R5pnHmuNLDAiEAqi2PT+jQ8j2rFrUZxX91YHhK3pWXAMEr4bhFFf64xto="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"dbashford","email":"dbashford@hotmail.com"},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.6.0":{"name":"mimosa-server-template-compile","version":"0.6.0","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"lodash":"2.4.1","wrench":"1.5.8","consolidate":"0.10.0","jade":"1.3.0","handlebars":"1.3.0","hogan.js":"2.0.0","ejs":"1.0.0","html":"0.0.7"},"license":"MIT","engines":{"node":">=0.8"},"main":"./lib/index","scripts":{"prepublish":"mimosa build"},"bugs":{"url":"https://github.com/dbashford/mimosa-server-template-compile/issues"},"_id":"mimosa-server-template-compile@0.6.0","dist":{"shasum":"59860e7b60a572c15eedd4f66b7cee22ee635899","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.6.0.tgz","integrity":"sha512-2RT7kqeyyFg5YEVWj++SedbtJCBttDBUsKh/aY6X+8psorGgWbYETAqiJlequWcddHGGBasylyJQOQbQDvfLXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjmbqF6dtnBVw/Z0hgkefIfWwzSR7ok2A2oWkQjaVmkQIgcXSM2p+9bG3B7YP1VHGWXypmAdvWdjeONoayQ++ydVk="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"dbashford","email":"dbashford@hotmail.com"},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.7.0":{"name":"mimosa-server-template-compile","version":"0.7.0","homepage":"https://github.com/dbashford/mimosa-server-template-compile","author":{"name":"David Bashford"},"description":"A mimosa module for compiling server templates as part of a build","contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"dependencies":{"lodash":"2.4.1","wrench":"1.5.8","consolidate":"0.10.0","jade":"1.3.1","handlebars":"1.3.0","hogan.js":"3.0.2","ejs":"1.0.0","html":"0.0.7"},"license":"MIT","engines":{"node":">=0.8"},"main":"./lib/index","scripts":{"prepublish":"mimosa build"},"bugs":{"url":"https://github.com/dbashford/mimosa-server-template-compile/issues"},"_id":"mimosa-server-template-compile@0.7.0","dist":{"shasum":"33cfa28c0e4ce991017327b0991642e11eb01755","tarball":"https://registry.npmjs.org/mimosa-server-template-compile/-/mimosa-server-template-compile-0.7.0.tgz","integrity":"sha512-M4775MJfZWxKnP++mLqs7R4U9CtwUOGT0lZHyBuo3MJkS1lgUWtdiyn0UIsz0gIfk2hUahxNzuBwClfQEQlXJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVx/uoVrqXqRC/ijWwm+lJ3MkhEdj+e1SRFNK9BCZ+UgIhAJSXP1bu/DTWxXHiDoDVMRwb8m7/C0UxMhV5ImRtIC2r"}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"dbashford","email":"dbashford@hotmail.com"},"maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}]}},"readme":"mimosa-server-template-compile\n===========\n\n## Overview\n\nThis Mimosa module will find and compile server templates as part of a Mimosa build.\n\nFor more information regarding Mimosa, see http://mimosa.io\n\n## Usage\n\nAdd `'server-template-compile'` to your list of modules.  That's all!  Mimosa will install the module for you when you start up.\n\n## Functionality\n\nThis module will, as part of a `mimosa build`, compile your dynamic templates into `.html` files.  Use this module if you want to take advantage of Mimosa's serving of dynamic templates, but do not intend to deploy node to your target environment and therefore cannot dynamically compile templates at runtime.  This also enables building of static websites using dynamic assets.\n\nThe server template languages supported by Mimosa are supported by this module. Those include:\n\n* Jade (default)\n* Hogan\n* EJS\n* Handlebars\n\nThis module replaces the old `--jade` flag that was a part of `mimosa build` pre version 0.7.0.\n\nThis module will also clean up after itself, removing any templates it has compiled when you run a `clean` command.\n\n## Default Config\n\nThe default config for this module is almost entirely derived from other settings and properties in a project.  Some are from other Mimosa module settings, some from flags used during `mimosa build`, others from the project's package.json.  Those settings are indicated below after an arrow `=>`.\n\nThe full default config:\n\n```\nserverTemplate:\n  compileWith: => server.views.compileWith or 'jade'\n  extension: => server.views.extension or 'jade'\n  inPath: => server.views.path or 'views'\n  outPath: => server.watch.compiledDir\n  exclude: [\"layout.jade\"]\n  locals:\n    title:     \"Mimosa\"\n    reload:    false\n    optimize:  => whether or not the --optimize flag is used\n    cachebust: => project's package.json.version or \"\"\n```\n\n* `compileWith`: a string, the name of the compiler to use for the server views.  Defaults to the setting located at `server.views.compileWith`.  If that setting isn't present, it defaults to `jade`.  Possible values are: `jade`, `hogan.js`, `handlebars`, `ejs`.\n* `extension`: a string, the extension of the files to compile.  Defaults to the setting located at `server.views.extension`.  If that setting isn't present, it defaults to `jade`.\n* `inPath`: a string, the path to the folder containing the server templates. Defaults to the setting located at `server.views.path`.  If that setting isn't present, it defaults to `views`.  Path can be absolute or relative to the root of the project.\n* `outPath`: a string, the path to the folder to which the the templates will be compiled. Defaults to the `server.watch.compiledDir`.  Path can be absolute or relative to the root of the project.\n* `exclude`: an array of strings, a list of files to not compile.  Paths can be relative to `inPath` or absolute. Defaults to `['layout.jade']`. File paths do not need to exist.\n* `locals`: an object, the JSON object to pass into the server templates when they are compiled. By default, the same JSON object is passed into all templates.  An alternative configuration exists where objects can be defined on a per template basis.  See below.\n* `locals.title`: a string, defaults to `Mimosa`.  If you are using `title` in your views, you'll like want to change this away from `Mimosa`\n* `locals.reload`: a boolean, defaults to `false`.  It doesn't much sense to use live reload as part of a build, so this is set to false. If you are not using `mimosa-live-reload`, this setting has no effect.\n* `locals.optimize`: a boolean, defaults to the whether or not the `--optimize` flag is used as part of the build.  If the flag is used, this setting is `true`.\n* `locals.cachebust`: a string, the string to tack onto asset urls in the compiled `.html`.  By default this is set to `?b=` followed by the value of the project's package.json version property.  If that does not exist, it is set to an empty string. Often when building and deploying an app, you want to cachebust the assets, but only for each version of the application that gets deployed rather than with every load of the page.  This accomplishes that.\n\nThe derived settings above are assumed, making the actual `mimosa-config` defaults the following:\n\n```\nserverTemplate:\n  exclude: [\"layout.jade\"]\n  locals:\n    title: \"Mimosa\"\n    reload: false\n```\n\nIf you are using jade, and using `mimosa-server`, and have templates that do not vary far from those delivered by `mimosa new`, then all you may need to do is change the `locals.title` property.  For example:\n\n```\nserverTemplate:\n  locals:\n    title: \"MyAppName\"\n```\n\n## Alternate Config\n\nYour templates may not all take the same parameters.  The config is flexible enough to allow you to pass in different parameters per template.\n\n```\nserverTemplate:\n  compileWith: => server.views.compileWith or 'jade'\n  extension: => server.views.extension or 'jade'\n  inPath: => server.views.path or 'views'\n  outPath: => server.watch.compiledDir\n  exclude: [\"layout.jade\"]\n  locals:\n    title:     \"Mimosa\"\n    reload:    false\n    optimize:  => whether or not the --optimize flag is used\n    cachebust: => project's package.json.version\n  views: [{\n    path: \"foo.jade\" <= no default\n    locals:\n      title:     \"Mimosa\"\n      reload:    false\n      optimize:  => whether or not the --optimize flag is used\n      cachebust: => project's package.json.version or \"\"\n  }]\n```\n\nAdditional fields in this config:\n\n* `views`: a list of views to compile\n* `views.path`: a string, a path to a view. The `path` can be absolute, or relative to the `inPath`. The `path` should match the name of a template and can include or not include the extension. The `path` must exist.\n* `views.locals`: an object, object properties to pass into the template compilation.  All of the defaults for `locals` listed above (`title`, `reload`, `optimize`, and `cachebust`) are assumed for each entry in the `views` array. Any view encountered that is not in the array of views will get the root `locals` passed in to compilation. Any top-level `locals` are inherited by `locals` in the `views` array.\n","maintainers":[{"name":"dbashford","email":"dbashford@hotmail.com"}],"time":{"modified":"2022-06-19T20:10:06.579Z","created":"2012-12-15T14:39:33.131Z","0.1.0":"2012-12-15T14:39:33.964Z","0.2.0":"2013-01-03T17:25:35.880Z","0.3.0":"2013-01-10T14:27:15.193Z","0.3.1":"2013-01-12T02:55:44.518Z","0.3.2":"2013-02-01T04:06:56.731Z","0.4.0":"2013-05-08T14:52:14.870Z","0.4.1":"2013-10-10T19:18:40.621Z","0.5.0":"2014-02-13T02:21:55.024Z","0.5.1":"2014-03-01T18:42:04.997Z","0.6.0":"2014-04-03T14:23:28.266Z","0.7.0":"2014-07-13T21:51:36.872Z"},"author":{"name":"David Bashford"},"repository":{"type":"git","url":"https://github.com/dbashford/mimosa-server-template-compile"},"readmeFilename":"README.md","homepage":"https://github.com/dbashford/mimosa-server-template-compile","keywords":["mimosa","mmodule","jade","ejs","handlebars","hogan","template","compile"],"contributors":[{"name":"David Bashford","email":"dbashford@hotmail.com"}],"bugs":{"url":"https://github.com/dbashford/mimosa-server-template-compile/issues"},"license":"MIT"}