{"_id":"grunt-ssi","_rev":"26-6ef4a1bf773f0e01e12af600e1ffbe1c","name":"grunt-ssi","description":"Compiles HTML with SSI into static HTML pages","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"grunt-ssi","description":"Compiles HTML with SSI into static HTML pages","version":"0.1.0","homepage":"https://github.com/anguspiv/grunt-ssi","author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"repository":{"type":"git","url":"git://github.com/anguspiv/grunt-ssi.git"},"bugs":{"url":"https://github.com/anguspiv/grunt-ssi/issues"},"licenses":[{"type":"MIT","url":"https://github.com/anguspiv/grunt-ssi/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"dependencies":{"node.extend":"~1.0.9"},"_id":"grunt-ssi@0.1.0","dist":{"shasum":"db9593b3476886eab8859213a0c55ebed01abdf4","tarball":"https://registry.npmjs.org/grunt-ssi/-/grunt-ssi-0.1.0.tgz","integrity":"sha512-BwIJ69W+VIsZgvV2Bd6v9IwWMKXIjrQ78c0cKPc7HF474EfDyiHJqqIvk7pcjR2bqp++tKSHiNrO3sYqIFoIWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFzxQb4dADmZlf9nlV3Oy3ta0OgsiDORhvn6i6xhLG1aAiAsBSsHz6cgQASyp1cSqUfJNCrEGYniJC3PlpNqOq6kDg=="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"angusp","email":"agusp@angusp.com"},"maintainers":[{"name":"angusp","email":"agusp@angusp.com"}]},"0.1.2":{"name":"grunt-ssi","description":"Compiles HTML with SSI into static HTML pages","version":"0.1.2","homepage":"https://github.com/anguspiv/grunt-ssi","author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"repository":{"type":"git","url":"git://github.com/anguspiv/grunt-ssi.git"},"bugs":{"url":"https://github.com/anguspiv/grunt-ssi/issues"},"licenses":[{"type":"MIT","url":"https://github.com/anguspiv/grunt-ssi/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"dependencies":{"node.extend":"~1.0.9"},"_id":"grunt-ssi@0.1.2","dist":{"shasum":"a4771bcbf28cffef7f92895eabe01ae983f03d9d","tarball":"https://registry.npmjs.org/grunt-ssi/-/grunt-ssi-0.1.2.tgz","integrity":"sha512-D5tbwjPzhLrNO8F2cRH0mhceSOn0nU/AK0bJZjq60fjM6Rt/p23VjNeo3Y02BsV3qfPcVarJ+D08t9+h/xLUFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJBr/lu743qXIrIJaYgad+oKCaEmyW2tWrInFT9zHs4gIgBXWETqGQ/k0p7GZ4u6Dskr2qHyiLbpraiBcwaka4VN8="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"angusp","email":"agusp@angusp.com"},"maintainers":[{"name":"angusp","email":"agusp@angusp.com"}]},"0.1.3":{"name":"grunt-ssi","description":"Compiles HTML with SSI into static HTML pages","version":"0.1.3","homepage":"https://github.com/anguspiv/grunt-ssi","author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"repository":{"type":"git","url":"git://github.com/anguspiv/grunt-ssi.git"},"bugs":{"url":"https://github.com/anguspiv/grunt-ssi/issues"},"licenses":[{"type":"MIT","url":"https://github.com/anguspiv/grunt-ssi/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"dependencies":{"node.extend":"~1.0.9"},"_id":"grunt-ssi@0.1.3","dist":{"shasum":"08a69c708a4979a644d2ebffe92b624cf59407b0","tarball":"https://registry.npmjs.org/grunt-ssi/-/grunt-ssi-0.1.3.tgz","integrity":"sha512-J/maAaeSoEKpKWpM3lqFo2DUjYXboOygXnwNEjXXfJHNmbNDKBIVdH2MX7aSBm4kO2fdU6J2S8Z3egy5UoDXaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9rtyrCFNFPMQ/Ton2mNaeXwFQKmM6lE5PamDX/7JWXgIhAPrA9aoisqnSqmYeY3hhLpUsVNNm03EQAE63aSi4iX8m"}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"angusp","email":"agusp@angusp.com"},"maintainers":[{"name":"angusp","email":"agusp@angusp.com"}]},"0.1.4":{"name":"grunt-ssi","description":"Compiles HTML with SSI into static HTML pages","version":"0.1.4","homepage":"https://github.com/anguspiv/grunt-ssi","author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"repository":{"type":"git","url":"git://github.com/anguspiv/grunt-ssi.git"},"bugs":{"url":"https://github.com/anguspiv/grunt-ssi/issues"},"licenses":[{"type":"MIT","url":"https://github.com/anguspiv/grunt-ssi/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"dependencies":{"node.extend":"~1.0.9"},"_id":"grunt-ssi@0.1.4","dist":{"shasum":"3a71d7d35035706a74f72f4900a77fd85088593b","tarball":"https://registry.npmjs.org/grunt-ssi/-/grunt-ssi-0.1.4.tgz","integrity":"sha512-/XMS+xf4+XLCeHjpE8UJeocQFxYlOQYbkXRY0hT869arvI1rUTqq5mQXAycPzqSziiDGI0Zekm3jA9dGzWg20A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUzSfRVKbhWMy3WR29PZLwOgnn4aA+zu5T7TeqJ4CeZwIhAO6T01WMbghU7cECFGC0M7PkoKn7vPI8AYz6FOXNbB69"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"angusp","email":"agusp@angusp.com"},"maintainers":[{"name":"angusp","email":"agusp@angusp.com"}]},"0.2.0":{"name":"grunt-ssi","description":"Compiles HTML with SSI into static HTML pages","version":"0.2.0","homepage":"https://github.com/anguspiv/grunt-ssi","author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"repository":{"type":"git","url":"git://github.com/anguspiv/grunt-ssi.git"},"bugs":{"url":"https://github.com/anguspiv/grunt-ssi/issues"},"licenses":[{"type":"MIT","url":"https://github.com/anguspiv/grunt-ssi/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"dependencies":{"node.extend":"~1.0.9"},"_id":"grunt-ssi@0.2.0","dist":{"shasum":"3da803cacd58aacb6452036f90b84df0f847f60d","tarball":"https://registry.npmjs.org/grunt-ssi/-/grunt-ssi-0.2.0.tgz","integrity":"sha512-bdPmLed5aU7Lb08TcHBP07t9pH6K9ftTYLTOPS5IOCNf3KYat4fDKIK9kkp73WBzD/v+oL0SonJCYIY/sLF5+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtmiC6FtwiI463TladFhSJdwxCEEqh0lYnGGNnd0Y7MAIhAKJo491blpij+bzcE8kQsagqQ/mCI7Ni2eJzafyIq0e4"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"angusp","email":"agusp@angusp.com"},"maintainers":[{"name":"angusp","email":"agusp@angusp.com"}]},"0.2.1":{"name":"grunt-ssi","description":"Compiles HTML with SSI into static HTML pages","version":"0.2.1","homepage":"https://github.com/anguspiv/grunt-ssi","author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"repository":{"type":"git","url":"git://github.com/anguspiv/grunt-ssi.git"},"bugs":{"url":"https://github.com/anguspiv/grunt-ssi/issues"},"licenses":[{"type":"MIT","url":"https://github.com/anguspiv/grunt-ssi/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"dependencies":{"node.extend":"~1.0.9"},"_id":"grunt-ssi@0.2.1","dist":{"shasum":"c356e939a6e75d0dde6c7a57fb7d27c6008cdf65","tarball":"https://registry.npmjs.org/grunt-ssi/-/grunt-ssi-0.2.1.tgz","integrity":"sha512-cNzp/HB541FWU7JgtyFKVzw0Pe8YDq5mrDAUMqXiCW1IaTRee03T34G6Ri9fAMMfrOB6SQp906t57zbg0VXnJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJWAR8q+gMLWUmU+rE9cnSZcB8/JDqZPVoN64aC5IJ6AIgI6ibIFkzl01jlY+MffBNsM6tzFY75slIK+wE4pLl+9s="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"angusp","email":"agusp@angusp.com"},"maintainers":[{"name":"angusp","email":"agusp@angusp.com"}]}},"readme":"# grunt-ssi\n\n> Compiles HTML with SSI into static HTML pages\n\n## Getting Started\nThis plugin requires Grunt `~0.4.2`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-ssi --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-ssi');\n```\n\n## The \"ssi\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `ssi` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  ssi: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.baseDir\nType: `String`\nDefault value: `'html'`\n\nThe Directory location where to locate Server Side Includes from.\n\n#### options.cacheDir\nType: `String`\nDefault value: `'.tmp/.ssiCache'`\n\nThe Directory Location to store the cached ssi files\n\n#### options.includesRegex\nType: `Regex`\nDefault value: `/<!--\\#include\\s+(file|virtual)=[\"']([^\"'<>|\\b]+)['\"]\\s+-->/g`\n\nThe Regex Object used to find and parse SSI Include Tags\n\n#### options.cache\nType: `String | Boolean`\nDefault value: `false`\n\nWhether or not to check the cache when processing the file. `true` to use the cached version, `false` to clear the file cache, and `'all'` to clear all cached files\n\n#### options.ext\nType: `String`\nDefault value: `'.html'`\n\nThe extension to use for the outputed files.\n\n#### options.encoding\nType: `String`\nDefault value: `'utf8'`\n\nFile encoding used to read and write out the files.\n\n### Usage Examples\n\n#### Standard Options\nTypical Settings as such read in `.html` files in the `/html` directory, and outputs the parsed files to `/.tmp/html`. This will only output the originating `.html` files, but still include files specified by `#include` tags such as `.inc` or `.shtml`\n```js\ngrunt.initConfig({\n  ssi: {\n    options: {},\n    files: [{\n          expand: true,\n          cwd: 'html'\n          src: ['**/*.html'],\n          dest: '.tmp/html',\n        }],\n  },\n});\n```\n\n#### Custom Options\nHere is an example that clears the entire cache, and outputs files as `.shtml`\n\n```js\ngrunt.initConfig({\n  ssi: {\n    options: {\n      cache: 'all',\n      ext: '.shtml',\n      baseDir: 'path/to/views',\n    },\n    files: [{\n          expand: true,\n          cwd: 'html',\n          src: ['**/*.html'],\n          dest: '.tmp/html',\n        }],\n  },\n});\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n### 0.2.0 (3rd Mar 2014) (Current)\nUpdated to allow for proper Grunt Logging for normal use and verbose\nand Fixes for passing the cache clear option\n\n### 0.1.2 (26th Feb 2014)\nFixes to use the proper Grunt Files options\n\n### 0.0.1 (Jan 2014)\nIntial release and proof of concept\n","maintainers":[{"name":"angusp","email":"angusp@angusp.com"},{"name":"kidwm","email":"wandererm@gmail.com"}],"time":{"modified":"2022-06-18T16:01:44.264Z","created":"2014-01-17T18:40:49.713Z","0.1.0":"2014-01-17T18:40:50.301Z","0.1.2":"2014-02-27T02:08:21.167Z","0.1.3":"2014-02-27T02:24:44.434Z","0.1.4":"2014-02-28T20:47:35.341Z","0.2.0":"2014-03-04T01:37:08.988Z","0.2.1":"2014-03-27T22:06:41.837Z"},"author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"repository":{"type":"git","url":"git://github.com/anguspiv/grunt-ssi.git"},"homepage":"https://github.com/anguspiv/grunt-ssi","keywords":["gruntplugin"],"bugs":{"url":"https://github.com/anguspiv/grunt-ssi/issues"},"readmeFilename":"README.md","users":{}}