{
  "author": {
    "name": "John Roepke",
    "email": "john@justjohn.us",
    "url": "http://john.sh/"
  },
  "name": "ks-twig",
  "description": "JS port of the Twig templating language.",
  "version": "0.7.11",
  "homepage": "https://github.com/justjohn/twig.js",
  "licenses": [
    {
      "type": "BSD-2-Clause",
      "url": "https://raw.github.com/justjohn/twig.js/master/LICENSE"
    }
  ],
  "repository": {
    "type": "git",
    "url": "git://github.com/justjohn/twig.js.git"
  },
  "main": "twig.min.js",
  "engines": {
    "node": "*"
  },
  "bin": {
    "twigjs": "./bin/twigjs"
  },
  "scripts": {
    "test": "make test"
  },
  "dependencies": {
    "walk": "2.3.x",
    "minimatch": "0.2.x"
  },
  "devDependencies": {
    "tokenizer": "1.1.x",
    "should": "3.3.x",
    "mocha": "1.18.x",
    "docco": "0.6.x",
    "uglify-js": "2.4.x"
  },
  "readme": "[![Build Status](https://secure.travis-ci.org/justjohn/twig.js.png)](http://travis-ci.org/#!/justjohn/twig.js)\n[![NPM version](https://badge.fury.io/js/twig.png)](http://badge.fury.io/js/twig)\n\n# About\n\nTwig.js is a pure JavaScript implementation of the Twig PHP templating language\n(<http://twig.sensiolabs.org/>)\n\nThe goal is to provide a library that is compatible with both browsers and server side JavaScript environments such as node.js.\n\nTwig.js is currently a work in progress and supports a limited subset of the Twig templating language (with more coming).\n\n### Docs\n\nDocumentation is available in the [twig.js wiki](https://github.com/justjohn/twig.js/wiki) on Github.\n\n### Feature Support\n\nFor a list of supported tags/filters/functions/tests see the [Implementation Notes](https://github.com/justjohn/twig.js/wiki/Implementation-Notes) page on the wiki.\n\n### Contributing\n\nIf you have a change you want to make to twig.js, feel free to fork this repository and submit a pull request on Github. The source files are located in src/*.js. twig.js is built by running `make`\n\nFor more details on getting setup, see the [contributing page](https://github.com/justjohn/twig.js/wiki/Contributing) on the wiki.\n\n# Browser Usage\n\nTwig.js can be installed as a bower package with:\n\n    bower install twig.js\n\nInclude twig.js or twig.min.js in your page, then:\n\n```js\nvar template = twig({\n    data: 'The {{ baked_good }} is a lie.'\n});\n\nconsole.log(\n    template.render({baked_good: 'cupcake'})\n);\n// outputs: \"The cupcake is a lie.\"\n```\n\n# Node Usage\n\nTwig.js can be installed with NPM\n\n    npm install twig\n\nYou can use twig in your app with\n\n    var Twig = require('twig'), // Twig module\n        twig = Twig.twig;       // Render function\n\nTwig is compatable with express 2 and 3. You can create an express app using the twig.js templating language by setting the view engine to twig.\n\n## app.js\n\n**Express 3**\n\n```js\nvar Twig = require(\"twig\"),\n    express = require('express'),\n    app = express();\n\n// This section is optional and used to configure twig.\napp.set(\"twig options\", {\n    strict_variables: false\n});\n\napp.get('/', function(req, res){\n  res.render('index.twig', {\n    message : \"Hello World\"\n  });\n});\n\napp.listen(9999);\n```\n\n## views/index.twig\n\n```html\nMessage of the moment: <b>{{ message }}</b>\n```\n\nAn [Express 2 Example](https://github.com/justjohn/twig.js/wiki/Express-2) is available on the wiki.\n\n# Tests\n\nThe twig.js tests are written in [Mocha][mocha] and can be invoked with `make test`.\n\n# License\n\nTwig.js is available under a [BSD 2-Clause License][bsd-2], see the LICENSE file for more information.\n\n# Acknowledgments\n\nSee the LICENSES.md file for copies of the referenced licenses.\n\n1. The JavaScript Array fills in src/twig.fills.js are from <https://developer.mozilla.org/> and are available under the [MIT License][mit] or are [public domain][mdn-license].\n\n2. The Date.format function in src/twig.lib.js is from <http://jpaq.org/> and used under a [MIT license][mit-jpaq].\n\n3. The sprintf implementation in src/twig.lib.js used for the format filter is from <http://www.diveintojavascript.com/projects/javascript-sprintf> and used under a [BSD 3-Clause License][bsd-3].\n\n4. The strip_tags implementation in src/twig.lib.js used for the striptags filter is from <http://phpjs.org/functions/strip_tags> and used under and [MIT License][mit-phpjs].\n\n[mit-jpaq]:     http://jpaq.org/license/\n[mit-phpjs]:    http://phpjs.org/pages/license/#MIT\n[mit]:          http://www.opensource.org/licenses/mit-license.php\n[mdn-license]:  https://developer.mozilla.org/Project:Copyrights\n\n[bsd-2]:        http://www.opensource.org/licenses/BSD-2-Clause\n[bsd-3]:        http://www.opensource.org/licenses/BSD-3-Clause\n[cc-by-sa-2.5]: http://creativecommons.org/licenses/by-sa/2.5/ \"Creative Commons Attribution-ShareAlike 2.5 License\"\n\n[mocha]:        http://visionmedia.github.com/mocha/\n[qunit]:        http://docs.jquery.com/QUnit\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/justjohn/twig.js/issues"
  },
  "_id": "ks-twig@0.7.10",
  "_from": "ks-twig@^0.7.*"
}
