{"_id":"@cosentino/grunt-ssi","_rev":"2-2d31eef4ad2302759c205af101e9c12c","name":"@cosentino/grunt-ssi","dist-tags":{"latest":"0.2.3"},"versions":{"0.2.1":{"name":"@cosentino/grunt-ssi","version":"0.2.1","description":"Compiles HTML with SSI into static HTML pages","homepage":"https://github.com/cosentino/grunt-ssi#readme","author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"repository":{"type":"git","url":"git+https://github.com/cosentino/grunt-ssi.git"},"bugs":{"url":"https://github.com/cosentino/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"},"dependencies":{"node.extend":"~1.0.9"},"keywords":["gruntplugin","ssi","include"],"_id":"@cosentino/grunt-ssi@0.2.1","_nodeVersion":"16.13.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-DIA7f11JuBIfkGD8Nf/aUiSc++Cx5cnFnffvWO6RJNKbnP13j4QAFXy2nl+K5RrU0snSY0brft++9ndDdknK+w==","shasum":"bde71693c1086775fd862055aedee141cb0b1ea2","tarball":"https://registry.npmjs.org/@cosentino/grunt-ssi/-/grunt-ssi-0.2.1.tgz","fileCount":1,"unpackedSize":1035,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGiho4uXn2KgnUmFgkus0lsB0oMgfCwv+AFvW2Wjl5rAIhAN7g8+U5+CFjJfVHhe92MWxe5IEZyhMVZ+FBaAnxtrFt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJEiJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmracw/+Oq6yfr4QTi6RamJbUdAflZMMwpcURXit2vc3qgE4Al+9qpKJ\r\nvneW9nZjc3dhL+bSsBoq+m56whWEYtmZ917jypNIRSNGyhk4X4JZVLZZreK2\r\nDxKXqJGE2/pvn4CRxfGciaTV3lRTF3cSK12hBpeyCzjmwfOODXBwhNyEV8JE\r\ny1ReUSSufD89mYZzNo0ojE+F+sVUD1S+kd8JZsCr1dPoJUQHRdJTkEoFZyB/\r\nb/E5d6c5aDkg+gkDHwDv+AQZRNtEF9ZImt8bXdBT4VNaAMHkPH8zz8yDG97d\r\nXjFjau8J2WUyLR16qZ0PP2AHiGIPREOtJgwhJRm2iXrjt7ksTX8eSiTkpfOc\r\nDNaIyGYZMQeyrP6B5CHq4oG9wyGSDiVovW6Cucp5vhYn80gLtpnfcifGX05g\r\n7IcTTrXykQW6dEDB9OyCpY7R1wrA02HU2S4DBDrJOrHJINa4tqVSJZXXUVKF\r\nk3P6lsD3XhtjN7uC6UkNOhYdUm2o8onPGz8Em9IDFwrs/rtivuGw+nW87Jbl\r\nXnV5nkSuv4O7FQ4Sv1ezmWq0sHEMzpDUs9duNOEgA9D+uV6P1USOvKWLid6D\r\nlgrvdLeXyEByRXW5JoHuiPZgELAW4mdeEEGJqgF6M9dCsV+e5Vu7hnw8VW9A\r\n1WDf5PViyh5a5GwfbWYyaCZAp968SRRJ0ME=\r\n=qing\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cosentino","email":"cosentino.marcello@gmail.com"},"directories":{},"maintainers":[{"name":"cosentino","email":"cosentino.marcello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grunt-ssi_0.2.1_1663322249679_0.4997318684517915"},"_hasShrinkwrap":false},"0.2.2":{"name":"@cosentino/grunt-ssi","version":"0.2.2","description":"Compiles HTML with SSI into static HTML pages","homepage":"https://github.com/cosentino/grunt-ssi#readme","author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"repository":{"type":"git","url":"git+https://github.com/cosentino/grunt-ssi.git"},"bugs":{"url":"https://github.com/cosentino/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"},"dependencies":{"node.extend":"~1.0.9"},"keywords":["gruntplugin","ssi","include"],"gitHead":"d8e3256582859203d063fbfd3fa2c2661cd636cb","_id":"@cosentino/grunt-ssi@0.2.2","_nodeVersion":"16.13.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-AwzeywsbyBayBOm4HRAy6Qg5xW9py72d2vEcZZ5+9kNc75jZ7ZmDPTUuq+Hvlg8m2xPjPyDMZqGwPAoNRq1VDw==","shasum":"df10ce8d8a5ef4ecdda7ad282d9a3028d576271e","tarball":"https://registry.npmjs.org/@cosentino/grunt-ssi/-/grunt-ssi-0.2.2.tgz","fileCount":24,"unpackedSize":32321,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIERn5VQmJj7MmUpAByeq/eODp0X4peQqab0FaDTvFL8yAiBKkLwBIJrT9q0Ha2m/EMS5JNvxs5AwUzsD5b+/1FxghQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJEvWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKqg//QSnjd1iy8x6BTK8kD6jA5T3brwk6dUZwv477ULrs5SRurQeQ\r\nCa70itUNqsWRfFSa4rpkegyzNxIS79eF4TIKy7EahRXLB0blC7MhrQunVAuG\r\nvCJ8GHKPJXryY7bU+TrWdTNEvehi9Y17kfDc12cafC0FN8hxdHpInI+jkYXj\r\nQah87u2yDUcKsfCXC1hFNkO5m0iW7eTyrRpBIcmhjqBweIbxlH2aMvXqWxTK\r\naWTAT3M7h2B6iXqBSer1o+uqvXahKej0t6FGHmto/J+cD7B9pvJ77jIZppkK\r\n3cTG1OvnOmkl0vJD9NThY34cfFsBIcFURA5yEnmtZ2yGPLQ/34an1NlMN1m9\r\n6s1aXMNCmsmxeUx/m49xDGYZ59V9aQQPtWbMFGgbnqu2B7pnQZKa1KBU66JZ\r\naGqZcKrWYvKTKJmqaijlrIrYjGQvKMOB0rw2cWUaLWy80ATp2HZQvbDIqrpT\r\nige4Kc5KVtwUu+qcPN1o0UkKMHpplWpzJGjxLQDJjUdU5DoLNtIw/tGYJ/c0\r\nwffVPYUG0ZM4YJ6C4D9MEnHDT+ZxbOA7g2uieg4LZeSFxN14+rjViteQSpQo\r\nwW/SXuiLjLTwa3abyCau9raPvMDCzfMZiQ9OvTFn8LZvGQ++t5Snj3eGt6Y2\r\nx/duBDEcm76LpVC0L0bTcimC0u7s4PbZMNk=\r\n=gKPJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cosentino","email":"cosentino.marcello@gmail.com"},"directories":{},"maintainers":[{"name":"cosentino","email":"cosentino.marcello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grunt-ssi_0.2.2_1663323094210_0.7106784173359357"},"_hasShrinkwrap":false},"0.2.3":{"name":"@cosentino/grunt-ssi","version":"0.2.3","description":"Compiles HTML with SSI into static HTML pages","homepage":"https://github.com/cosentino/grunt-ssi#readme","author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"repository":{"type":"git","url":"git+https://github.com/cosentino/grunt-ssi.git"},"bugs":{"url":"https://github.com/cosentino/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":"~1.0.1","grunt-contrib-clean":"~2.0.1","grunt-contrib-jshint":"~3.2.0","grunt-contrib-nodeunit":"~4.0.0"},"peerDependencies":{"grunt":"~1.0.1"},"dependencies":{"node.extend":"~1.0.9"},"keywords":["gruntplugin","ssi","include"],"gitHead":"8fca5ddde1c0417ec064aa7ce6996cfd6d35ae0a","_id":"@cosentino/grunt-ssi@0.2.3","_nodeVersion":"16.13.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-fv8xFuIh6U2sLjrhVmhIdNqEzEMKLyl5OEVHjrdjkWzfIjzQMA6q0xfNPxKzsx2xBhJfuEPulnBfl1K8IFY1Xw==","shasum":"f22dbe0a7947b7a9acd2117d431215487f89b543","tarball":"https://registry.npmjs.org/@cosentino/grunt-ssi/-/grunt-ssi-0.2.3.tgz","fileCount":24,"unpackedSize":32319,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwqVtcV4+ghFsw45Fow0CRyD1jiH5AVIWA6k9yvHKDVgIhAJH48X6EsY4nzTXiZHvFq+ws10E9FRGWejva7DYKCmDH"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJFCMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/pg//Y+2iWG14F6u2LqLXbYmmBxz64506lX3PSGHVgj8EF/Ov9IQ7\r\ncKpA1nDWdnQ4Fwx+wXwCf1jaPTi4Yc7UE8i/Xz570HDICYxBupFF5SpMmJFn\r\nYkVZv0YJzkLn4tbAKZ3fOTWT+8Aik67EO+I6L6S+y9KuuydWK1dZbc5nozbx\r\nSYT/9eGAEIHYf2CDocrdirM0b5GDNNUsF8+yY/acf/L1X4+uBGexgHK6abzP\r\nJKhMd2oWGiQgxG1PKlTOVlemVLwKKeQksUhl3NpE6JIMbZ/SvUO50hRI+xJh\r\nQbutYLrHGWPQPke1qFOZoba87en2UB5ptUDKoJEosznIxhy/YpAR0xs5RP8D\r\nmH9jiPb3tyBU81zqGSlvCX6aCusULeVWpQAwYMad98cqBDYI0Fi13drcVLwi\r\n+uAMBWVdySSBQemoOD7cW6W5AVbOvAq/CTGQNoPqq5uBVE5BiN0HYkoO9ZCh\r\nUsesQTxEJSjBAslrppvOxOuyyhC4HHkLXyqa06XRhn1dx/yzzr+mbRKRiN8H\r\no3YlEqfiw10deoJnSlaWTrtFXMuR7KWxZjgkCPwC+eq9z0vHWEvf9gUao6+4\r\nC8gzd6WXDbHhnL9ryCBmZ88jwt7Wm+uzJfMuhPP905qK71x/0gpylLXYWXuW\r\n3Kvbxfan5/Y43iObY1RYvsSP8AgU+rRcVAY=\r\n=cnqr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cosentino","email":"cosentino.marcello@gmail.com"},"directories":{},"maintainers":[{"name":"cosentino","email":"cosentino.marcello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grunt-ssi_0.2.3_1663324300126_0.9971563473645704"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-16T09:57:29.611Z","0.2.1":"2022-09-16T09:57:29.853Z","modified":"2022-09-16T10:31:40.411Z","0.2.2":"2022-09-16T10:11:34.566Z","0.2.3":"2022-09-16T10:31:40.345Z"},"maintainers":[{"name":"cosentino","email":"cosentino.marcello@gmail.com"}],"description":"Compiles HTML with SSI into static HTML pages","homepage":"https://github.com/cosentino/grunt-ssi#readme","keywords":["gruntplugin","ssi","include"],"repository":{"type":"git","url":"git+https://github.com/cosentino/grunt-ssi.git"},"author":{"name":"Angus Perkerson","email":"angusp@angup.com","url":"http://angusp.com"},"bugs":{"url":"https://github.com/cosentino/grunt-ssi/issues"},"readme":"# grunt-ssi\r\n\r\n> Compiles HTML with SSI into static HTML pages\r\n\r\n  NOTE: This plugin will soon be rewritten to base on [node-ssi](https://github.com/kidwm/node-ssi)\r\n\r\n## Getting Started\r\nThis plugin requires Grunt `~0.4.2`\r\n\r\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:\r\n\r\n```shell\r\nnpm install grunt-ssi --save-dev\r\n```\r\n\r\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n```js\r\ngrunt.loadNpmTasks('grunt-ssi');\r\n```\r\n\r\n## The \"ssi\" task\r\n\r\n### Overview\r\nIn your project's Gruntfile, add a section named `ssi` to the data object passed into `grunt.initConfig()`.\r\n\r\n```js\r\ngrunt.initConfig({\r\n  ssi: {\r\n    options: {\r\n      // Task-specific options go here.\r\n    },\r\n    your_target: {\r\n      // Target-specific file lists and/or options go here.\r\n    },\r\n  },\r\n});\r\n```\r\n\r\n### Options\r\n\r\n#### options.baseDir\r\nType: `String`\r\nDefault value: `'html'`\r\n\r\nThe Directory location where to locate Server Side Includes from.\r\n\r\n#### options.cacheDir\r\nType: `String`\r\nDefault value: `'.tmp/.ssiCache'`\r\n\r\nThe Directory Location to store the cached ssi files\r\n\r\n#### options.includesRegex\r\nType: `Regex`\r\nDefault value: `/<!--\\#include\\s+(file|virtual)=[\"']([^\"'<>|\\b]+)['\"]\\s+-->/g`\r\n\r\nThe Regex Object used to find and parse SSI Include Tags\r\n\r\n#### options.cache\r\nType: `String | Boolean`\r\nDefault value: `false`\r\n\r\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\r\n\r\n#### options.ext\r\nType: `String`\r\nDefault value: `'.html'`\r\n\r\nThe extension to use for the outputed files.\r\n\r\n#### options.encoding\r\nType: `String`\r\nDefault value: `'utf8'`\r\n\r\nFile encoding used to read and write out the files.\r\n\r\n#### options.varDefaults\r\nType: `Array` of `Objects`\r\nDefault value `[]`\r\n\r\nProvide default values for variable substitutions. If a variable is set in both options.varDefaults AND in the #include directive, the variable from the #include wins. For example, if we have these files:\r\n\r\n```html\r\n<!-- head.html -->\r\n<head>\r\n  <link rel=\"stylesheet\" href=\"${cssBundle}.css\" type=\"text/css\" />\r\n</head>\r\n```\r\n\r\n```html\r\n<!-- main.html -->\r\n<!-- #include file=\"includes/head.html\" ${cssBundle}=\"bananas\" -->\r\n<body>...</body>\r\n```\r\n\r\nAnd this Grunt configuration:\r\n\r\n```js:\r\n\r\ngrunt.initConfig({\r\n  ssi: {\r\n    options: {\r\n      varDefaults: [\r\n        {\r\n          name: 'cssBundle',\r\n          value: 'static',\r\n        }\r\n      ],\r\n    },\r\n    target: {\r\n      files: [{\r\n        expand: true,\r\n        cwd: 'dist',\r\n        src: ['*.html'],\r\n        dest: 'dist'\r\n      }],\r\n    }\r\n  },\r\n});\r\n```\r\n\r\nWe'll get this output:\r\n\r\n```html\r\n<!-- head.html -->\r\n<head>\r\n  <link rel=\"stylesheet\" href=\"bananas.css\" type=\"text/css\" />\r\n</head>\r\n<!-- main.html -->\r\n<body>...</body>\r\n```\r\n\r\n### Usage Examples\r\n\r\n#### Standard Options\r\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`\r\n```js\r\ngrunt.initConfig({\r\n  ssi: {\r\n    options: {},\r\n    target: {\r\n      files: [{\r\n          expand: true,\r\n          cwd: 'html',\r\n          src: ['**/*.html'],\r\n          dest: '.tmp/html'\r\n        }],\r\n    }\r\n  },\r\n});\r\n```\r\n\r\n#### Custom Options\r\nHere is an example that clears the entire cache, and outputs files as `.shtml`\r\n\r\n```js\r\ngrunt.initConfig({\r\n  ssi: {\r\n    options: {\r\n      cache: 'all',\r\n      ext: '.shtml',\r\n      baseDir: 'path/to/views',\r\n    },\r\n    target: {\r\n      files: [{\r\n          expand: true,\r\n          cwd: 'html',\r\n          src: ['**/*.html'],\r\n          dest: '.tmp/html'\r\n        }]\r\n    }\r\n  },\r\n});\r\n```\r\n\r\n\r\n## Contributing\r\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/).\r\n\r\n## Release History\r\n### 0.2.0 (3rd Mar 2014) (Current)\r\nUpdated to allow for proper Grunt Logging for normal use and verbose\r\nand Fixes for passing the cache clear option\r\n\r\n### 0.1.2 (26th Feb 2014)\r\nFixes to use the proper Grunt Files options\r\n\r\n### 0.0.1 (Jan 2014)\r\nIntial release and proof of concept\r\n","readmeFilename":"README.md"}