{"_id":"grunt-textfile","_rev":"35-1f2c27f041c5d5dcfbd7fa8407f278d9","name":"grunt-textfile","description":"A grunt task to quickly create text files for text file based blogging.","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"grunt-textfile","description":"A grunt task to create text files for text-based CMS sand static file generators.","version":"0.1.0","homepage":"https://github.com/kahlil/grunt-textfile","author":{"name":"Kahlil Lechelt","email":"hello@kahlil.co","url":"http://kahlil.co"},"repository":{"type":"git","url":"git://github.com/kahlil/grunt-textfile.git"},"bugs":{"url":"https://github.com/kahlil/grunt-textfile/issues"},"licenses":[{"type":"MIT","url":"https://github.com/kahlil/grunt-textfile/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"string":"~1.4.0"},"readme":"# grunt-textfile\n\n> A grunt task to quickly create text files for text-based blogging.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-textfile --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-textfile');\n```\n\n## The \"textfile\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `textfile` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    },\n    article: {\n      options: {\n          template: 'kirby-article.tpl',\n          urlFormat: 'PREFIX-SLUG/article.txt'\n      }\n    }\n  }\n})\n```\n\n#### Templates\n\nStore your templates in the templates folder and use the [`grunt.template`](http://gruntjs.com/api/grunt.template) and the [`grunt.option`](http://gruntjs.com/api/grunt.option) API for placeholders.\n\nExample template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: Jean-Luc Picard\n----\nText:\n``` \n\n### Options\n\n#### options.template\nType: `String`  \nDefault value: `'example.tpl'`  \n\n#### options.templateDir\nType: `String`  \nDefault value: `'templates'`  \n\n#### options.templateDir\nDestination for the generated file. Needs to be set to the folder in which your text files are stored.  \nType: `String`  \nDefault value: `'tmp'`  \n\n#### options.urlDateFormat\nIn case you need to use the date the name of the generated file, you can change the format with this option.  \nType: `String`  \nDefault value: `'yyyy-mm-dd'`  \n\n#### options.urlFormat\nType: `String`  \nDefault Value: 'PREFIX-SLUG/article.link.txt'  \n\nThis option lets you set the desired formatting of the filename. There are 3 keywords you can use in here: \n\n```\n// PREFIX is needed for Kirby blogs. It prepends an ascending number to the folder name \n// of the folder containing your textfile\n'PREFIX' \n// This keyword is replaced by the slug generated with the title\n'SLUG'\n// This keyword is replaced by the date of today \n// formatted via options.urlDateFormat\n'DATE'\n```\n\n### Usage Examples\n\n#### Kirby Link Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog'\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: kahlil-lechelt\n----\nText:\n```\n\n##### Call:\n```bash\ngrunt textfile --link=\"http://thisisalink.net\" --title=\"This is a title\"\n``` \n\n#### Jekyll Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: '_posts'\n    },\n    article: {\n      options: {\n        template: 'jekyll-article.tpl',\n        urlFormat: 'DATE-SLUG.md'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```Handlebars\n---\nTitle: <%= grunt.option('title') %>\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\nAuthor: kahlil-lechelt\n---\n```\n\n##### Call:\n```bash\ngrunt textfile --title=\"This is a title\"\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```\nv0.1.0: initial release\n```","_id":"grunt-textfile@0.1.0","dist":{"shasum":"004f866282acfc898ab96d6777103e0c7617e81d","tarball":"https://registry.npmjs.org/grunt-textfile/-/grunt-textfile-0.1.0.tgz","integrity":"sha512-WoteRgIszA0SgiLDBzbPgA7YQ2jx0PWitzkhh0tvutg29YYTzqK6B9yiinffwRnkkLbSNHIRWe364O/H1an/aA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCG7NBdHuwwGn3gwY0azk47/3CpEAOKbVWqtLd36Bz9bAIhAKtbW0b9e3kvzwP430oT12UQojBTsJYe4EY/RDKPfxPa"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"kahlil","email":"kahlil@kahlil.co"},"maintainers":[{"name":"kahlil","email":"kahlil@kahlil.co"}],"directories":{}},"0.1.1":{"name":"grunt-textfile","description":"A grunt task to create text files for text-based CMS sand static file generators.","version":"0.1.1","homepage":"https://github.com/kahlil/grunt-textfile","author":{"name":"Kahlil Lechelt","email":"hello@kahlil.co","url":"http://kahlil.co"},"repository":{"type":"git","url":"git://github.com/kahlil/grunt-textfile.git"},"bugs":{"url":"https://github.com/kahlil/grunt-textfile/issues"},"licenses":[{"type":"MIT","url":"https://github.com/kahlil/grunt-textfile/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"string":"~1.4.0"},"readme":"# grunt-textfile\n\n> A grunt task to quickly create text files for text file based blogging.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-textfile --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-textfile');\n```\n\n## The \"textfile\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `textfile` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    },\n    article: {\n      options: {\n          template: 'kirby-article.tpl',\n          urlFormat: 'PREFIX-SLUG/article.txt'\n      }\n    }\n  }\n})\n```\n\n#### Templates\n\nStore your templates in the templates folder and use the [`grunt.template`](http://gruntjs.com/api/grunt.template) and the [`grunt.option`](http://gruntjs.com/api/grunt.option) API for placeholders.\n\nExample template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: Jean-Luc Picard\n----\nText:\n``` \n\n### Options\n\n#### options.template\nType: `String`  \nDefault value: `'example.tpl'`  \n\n#### options.templateDir\nType: `String`  \nDefault value: `'templates'`  \n\n#### options.templateDir\nDestination for the generated file. Needs to be set to the folder in which your text files are stored.  \nType: `String`  \nDefault value: `'tmp'`  \n\n#### options.urlDateFormat\nIn case you need to use the date the name of the generated file, you can change the format with this option.  \nType: `String`  \nDefault value: `'yyyy-mm-dd'`  \n\n#### options.urlFormat\nType: `String`  \nDefault Value: 'PREFIX-SLUG/article.link.txt'  \n\nThis option lets you set the desired formatting of the filename. There are 3 keywords you can use in here: \n\n```\n// PREFIX is needed for Kirby blogs. It prepends an ascending number to the folder name \n// of the folder containing your textfile\n'PREFIX' \n// This keyword is replaced by the slug generated with the title\n'SLUG'\n// This keyword is replaced by the date of today \n// formatted via options.urlDateFormat\n'DATE'\n```\n\n### Usage Examples\n\n#### Kirby Link Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog'\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: kahlil-lechelt\n----\nText:\n```\n\n##### Call:\n```bash\ngrunt textfile --link=\"http://thisisalink.net\" --title=\"This is a title\"\n``` \n\n#### Jekyll Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: '_posts'\n    },\n    article: {\n      options: {\n        template: 'jekyll-article.tpl',\n        urlFormat: 'DATE-SLUG.md'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```Handlebars\n---\nTitle: <%= grunt.option('title') %>\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\nAuthor: kahlil-lechelt\n---\n```\n\n##### Call:\n```bash\ngrunt textfile --title=\"This is a title\"\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```\nv0.1.0: initial release\n```","_id":"grunt-textfile@0.1.1","dist":{"shasum":"dae681d592b20dad437dd9f2f136febbf4cde7c4","tarball":"https://registry.npmjs.org/grunt-textfile/-/grunt-textfile-0.1.1.tgz","integrity":"sha512-flj3DhP8GuD0oOh4037rTpfSCwB+ebEs6ZRTySLjSzmM8eG9bmM8xyj2IOGeVAgXOS1VTDYJdgeV4UA++dmKIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9kzyUTRiP5Qg2BjxE4h63AE7ZKvbU8ZVxEkGim6cRbgIhAP2+dCtng/2EGZUbQWO4FKY9LXMGTEc9Yu5dfh9BlD2p"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"kahlil","email":"kahlil@kahlil.co"},"maintainers":[{"name":"kahlil","email":"kahlil@kahlil.co"}],"directories":{}},"0.1.2":{"name":"grunt-textfile","description":"A grunt task to create text files for text-based CMS sand static file generators.","version":"0.1.2","homepage":"https://github.com/kahlil/grunt-textfile","author":{"name":"Kahlil Lechelt","email":"hello@kahlil.co","url":"http://kahlil.co"},"repository":{"type":"git","url":"git://github.com/kahlil/grunt-textfile.git"},"bugs":{"url":"https://github.com/kahlil/grunt-textfile/issues"},"licenses":[{"type":"MIT","url":"https://github.com/kahlil/grunt-textfile/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"string":"~1.4.0"},"readme":"# grunt-textfile\n\n> A grunt task to quickly create text files for text file based blogging.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-textfile --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-textfile');\n```\n\n## The \"textfile\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `textfile` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    },\n    article: {\n      options: {\n          template: 'kirby-article.tpl',\n          urlFormat: 'PREFIX-SLUG/article.txt'\n      }\n    }\n  }\n})\n```\n\n#### Templates\n\nStore your templates in the templates folder and use the [`grunt.template`](http://gruntjs.com/api/grunt.template) and the [`grunt.option`](http://gruntjs.com/api/grunt.option) API for placeholders.\n\nExample template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: Jean-Luc Picard\n----\nText:\n``` \n\n### Options\n\n#### options.template\nType: `String`  \nDefault value: `'example.tpl'`  \n\n#### options.templateDir\nType: `String`  \nDefault value: `'templates'`  \n\n#### options.templateDir\nDestination for the generated file. Needs to be set to the folder in which your text files are stored.  \nType: `String`  \nDefault value: `'tmp'`  \n\n#### options.urlDateFormat\nIn case you need to use the date the name of the generated file, you can change the format with this option.  \nType: `String`  \nDefault value: `'yyyy-mm-dd'`  \n\n#### options.urlFormat\nType: `String`  \nDefault Value: 'PREFIX-SLUG/article.link.txt'  \n\nThis option lets you set the desired formatting of the filename. There are 3 keywords you can use in here: \n\n```\n// PREFIX is needed for Kirby blogs. It prepends an ascending number to the folder name \n// of the folder containing your textfile\n'PREFIX' \n// This keyword is replaced by the slug generated with the title\n'SLUG'\n// This keyword is replaced by the date of today \n// formatted via options.urlDateFormat\n'DATE'\n```\n\n### Usage Examples\n\n#### Kirby Link Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog'\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: kahlil-lechelt\n----\nText:\n```\n\n##### Call:\n```bash\ngrunt textfile --link=\"http://thisisalink.net\" --title=\"This is a title\"\n``` \n\n#### Jekyll Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: '_posts'\n    },\n    article: {\n      options: {\n        template: 'jekyll-article.tpl',\n        urlFormat: 'DATE-SLUG.md'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```Handlebars\n---\nTitle: <%= grunt.option('title') %>\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\nAuthor: kahlil-lechelt\n---\n```\n\n##### Call:\n```bash\ngrunt textfile --title=\"This is a title\"\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```\nv0.1.2: minor changes\nv0.1.1: minor changes\nv0.1.0: initial release\n```","_id":"grunt-textfile@0.1.2","dist":{"shasum":"57deaca6b649b400fd3dc917bbd114c5099592ac","tarball":"https://registry.npmjs.org/grunt-textfile/-/grunt-textfile-0.1.2.tgz","integrity":"sha512-gBl44VnuYDxFjQlwyfE2mqHqWbr84lJiQG3pRJP0cMMk9Kn7cob8DVqqfX0zvFbJwa3QSru0tQvmlcB9V3f2yw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOcu/lysFKcTfk7ie2hwZ2MpLO8hhkrvZOg9jbx/T9nwIhAOH2Gn/v9U7bGqZCjSFMRx85KuzKKrstmu3+eJJa3wzP"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"kahlil","email":"kahlil@kahlil.co"},"maintainers":[{"name":"kahlil","email":"kahlil@kahlil.co"}],"directories":{}},"0.1.3":{"name":"grunt-textfile","description":"A grunt task to create text files for text-based CMS sand static file generators.","version":"0.1.3","homepage":"https://github.com/kahlil/grunt-textfile","author":{"name":"Kahlil Lechelt","email":"hello@kahlil.co","url":"http://kahlil.co"},"repository":{"type":"git","url":"git://github.com/kahlil/grunt-textfile.git"},"bugs":{"url":"https://github.com/kahlil/grunt-textfile/issues"},"licenses":[{"type":"MIT","url":"https://github.com/kahlil/grunt-textfile/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"string":"~1.4.0"},"readme":"# grunt-textfile\n\n> A grunt task to quickly create text files for text file based blogging.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-textfile --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-textfile');\n```\n\n## The \"textfile\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `textfile` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    },\n    article: {\n      options: {\n          template: 'kirby-article.tpl',\n          urlFormat: 'PREFIX-SLUG/article.txt'\n      }\n    }\n  }\n})\n```\n\n#### Templates\n\nStore your templates in the templates folder and use the [`grunt.template`](http://gruntjs.com/api/grunt.template) and the [`grunt.option`](http://gruntjs.com/api/grunt.option) API for placeholders.\n\nExample template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: Jean-Luc Picard\n----\nText:\n``` \n\n### Options\n\n#### options.template\nType: `String`  \nDefault value: `'example.tpl'`  \n\n#### options.templateDir\nType: `String`  \nDefault value: `'templates'`  \n\n#### options.templateDir\nDestination for the generated file. Needs to be set to the folder in which your text files are stored.  \nType: `String`  \nDefault value: `'tmp'`  \n\n#### options.urlDateFormat\nIn case you need to use the date the name of the generated file, you can change the format with this option.  \nType: `String`  \nDefault value: `'yyyy-mm-dd'`  \n\n#### options.urlFormat\nType: `String`  \nDefault Value: 'PREFIX-SLUG/article.link.txt'  \n\nThis option lets you set the desired formatting of the filename. There are 3 keywords you can use in here: \n\n```\n// PREFIX is needed for Kirby blogs. It prepends an ascending number to the folder name \n// of the folder containing your textfile\n'PREFIX' \n// This keyword is replaced by the slug generated with the title\n'SLUG'\n// This keyword is replaced by the date of today \n// formatted via options.urlDateFormat\n'DATE'\n```\n\n### Usage Examples\n\n#### Kirby Link Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog'\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: kahlil-lechelt\n----\nText:\n```\n\n##### Call:\n```bash\ngrunt textfile --link=\"http://thisisalink.net\" --title=\"This is a title\"\n``` \n\n#### Jekyll Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: '_posts'\n    },\n    article: {\n      options: {\n        template: 'jekyll-article.tpl',\n        urlFormat: 'DATE-SLUG.md'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```Handlebars\n---\nTitle: <%= grunt.option('title') %>\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\nAuthor: kahlil-lechelt\n---\n```\n\n##### Call:\n```bash\ngrunt textfile --title=\"This is a title\"\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\nOnly releases with bigger changes will be listed here. Not listed are minor releases only containing small fixes and clean up.\n```\nv0.1.0: initial release\n```","_id":"grunt-textfile@0.1.3","dist":{"shasum":"468a19737af79e0adee61af6037b9b3aac3f43f0","tarball":"https://registry.npmjs.org/grunt-textfile/-/grunt-textfile-0.1.3.tgz","integrity":"sha512-aGlg8tIY3seUNj9baHxWGCFOavOAYWa4YrpJ/l/+t1fIi9he9tiKc2NltMQqhziWbiC9tZUJ7dmqHevplTyx7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDwXV/DajiJIRD1xs90V0+uemgv5cowU07ON3Rlb9YcrAiEApiwZEc+SU+3TUf/JfhEYZf7fDXwyjr+6NYTBQ6NplWM="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"kahlil","email":"kahlil@kahlil.co"},"maintainers":[{"name":"kahlil","email":"kahlil@kahlil.co"}],"directories":{}},"0.1.4":{"name":"grunt-textfile","description":"A grunt task to create text files for text-based CMS sand static file generators.","version":"0.1.4","homepage":"https://github.com/kahlil/grunt-textfile","author":{"name":"Kahlil Lechelt","email":"hello@kahlil.co","url":"http://kahlil.co"},"repository":{"type":"git","url":"git://github.com/kahlil/grunt-textfile.git"},"bugs":{"url":"https://github.com/kahlil/grunt-textfile/issues"},"licenses":[{"type":"MIT","url":"https://github.com/kahlil/grunt-textfile/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"string":"~1.4.0"},"readme":"# grunt-textfile\n\n> A grunt task to quickly create text files for text file based blogging.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-textfile --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-textfile');\n```\n\n## The \"textfile\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `textfile` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    },\n    article: {\n      options: {\n          template: 'kirby-article.tpl',\n          urlFormat: 'PREFIX-SLUG/article.txt'\n      }\n    }\n  }\n})\n```\n\n#### Templates\n\nStore your templates in the templates folder and use the [`grunt.template`](http://gruntjs.com/api/grunt.template) and the [`grunt.option`](http://gruntjs.com/api/grunt.option) API for placeholders.\n\nExample template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: Jean-Luc Picard\n----\nText:\n``` \n\n### Options\n\n#### options.template\nType: `String`  \nDefault value: `'example.tpl'`  \n\n#### options.templateDir\nType: `String`  \nDefault value: `'templates'`  \n\n#### options.templateDir\nDestination for the generated file. Needs to be set to the folder in which your text files are stored.  \nType: `String`  \nDefault value: `'tmp'`  \n\n#### options.urlDateFormat\nIn case you need to use the date the name of the generated file, you can change the format with this option.  \nType: `String`  \nDefault value: `'yyyy-mm-dd'`  \n\n#### options.urlFormat\nType: `String`  \nDefault Value: 'PREFIX-SLUG/article.link.txt'  \n\nThis option lets you set the desired formatting of the filename. There are 3 keywords you can use in here: \n\n```\n// PREFIX is needed for Kirby blogs. It prepends an ascending number to the folder name \n// of the folder containing your textfile\n'PREFIX' \n// This keyword is replaced by the slug generated with the title\n'SLUG'\n// This keyword is replaced by the date of today \n// formatted via options.urlDateFormat\n'DATE'\n```\n\n### Usage Examples\n\n#### Kirby Link Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog'\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: kahlil-lechelt\n----\nText:\n```\n\n##### Call:\n```bash\ngrunt textfile --link=\"http://thisisalink.net\" --title=\"This is a title\"\n``` \n\n#### Jekyll Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: '_posts'\n    },\n    article: {\n      options: {\n        template: 'jekyll-article.tpl',\n        urlFormat: 'DATE-SLUG.md'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```Handlebars\n---\nTitle: <%= grunt.option('title') %>\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\nAuthor: kahlil-lechelt\n---\n```\n\n##### Call:\n```bash\ngrunt textfile --title=\"This is a title\"\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\nOnly releases with bigger changes will be listed here. Not listed are minor releases only containing small fixes and clean up.\n```\nv0.1.0: initial release\n```","_id":"grunt-textfile@0.1.4","dist":{"shasum":"424a4069fbff6449cdd4fa3252dded50dc53c4aa","tarball":"https://registry.npmjs.org/grunt-textfile/-/grunt-textfile-0.1.4.tgz","integrity":"sha512-5fSqPso1uXyN9scCZ0ShSd2AOElNWJSLK1dOhaB27lIiwBPPjyDffI9d6/hzP1Yp822CVylBpgyh+qJgYi0hbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjoc/1NSZn8SH/jH/zOhHIM84K8m0BrfJlCefKMURC7gIgEJv8jwDvqN2pPtSSWPLGd/JgUcLCwCfM/lCfKH+nAzk="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"kahlil","email":"kahlil@kahlil.co"},"maintainers":[{"name":"kahlil","email":"kahlil@kahlil.co"}],"directories":{}},"0.1.5":{"name":"grunt-textfile","description":"A grunt task to create text files for text file based blogging.","version":"0.1.5","homepage":"https://github.com/kahlil/grunt-textfile","author":{"name":"Kahlil Lechelt","email":"hello@kahlil.co","url":"http://kahlil.co"},"repository":{"type":"git","url":"git://github.com/kahlil/grunt-textfile.git"},"bugs":{"url":"https://github.com/kahlil/grunt-textfile/issues"},"licenses":[{"type":"MIT","url":"https://github.com/kahlil/grunt-textfile/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"string":"~1.4.0"},"readme":"# grunt-textfile\n\n> A grunt task to quickly create text files for text file based blogging.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-textfile --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-textfile');\n```\n\n## The \"textfile\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `textfile` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    },\n    article: {\n      options: {\n          template: 'kirby-article.tpl',\n          urlFormat: 'PREFIX-SLUG/article.txt'\n      }\n    }\n  }\n})\n```\n\n#### Templates\n\nStore your templates in the templates folder and use the [`grunt.template`](http://gruntjs.com/api/grunt.template) and the [`grunt.option`](http://gruntjs.com/api/grunt.option) API for placeholders.\n\nExample template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: Jean-Luc Picard\n----\nText:\n``` \n\n### Options\n\n#### options.template\nType: `String`  \nDefault value: `'example.tpl'`  \n\n#### options.templateDir\nType: `String`  \nDefault value: `'templates'`  \n\n#### options.templateDir\nDestination for the generated file. Needs to be set to the folder in which your text files are stored.  \nType: `String`  \nDefault value: `'tmp'`  \n\n#### options.urlDateFormat\nIn case you need to use the date the name of the generated file, you can change the format with this option.  \nType: `String`  \nDefault value: `'yyyy-mm-dd'`  \n\n#### options.urlFormat\nType: `String`  \nDefault Value: 'PREFIX-SLUG/article.link.txt'  \n\nThis option lets you set the desired formatting of the filename. There are 3 keywords you can use in here: \n\n```\n// PREFIX is needed for Kirby blogs. It prepends an ascending number to the folder name \n// of the folder containing your textfile\n'PREFIX' \n// This keyword is replaced by the slug generated with the title\n'SLUG'\n// This keyword is replaced by the date of today \n// formatted via options.urlDateFormat\n'DATE'\n```\n\n### Usage Examples\n\n#### Kirby Link Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog'\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: kahlil-lechelt\n----\nText:\n```\n\n##### Call:\n```bash\ngrunt textfile --link=\"http://thisisalink.net\" --title=\"This is a title\"\n``` \n\n#### Jekyll Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: '_posts'\n    },\n    article: {\n      options: {\n        template: 'jekyll-article.tpl',\n        urlFormat: 'DATE-SLUG.md'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```Handlebars\n---\nTitle: <%= grunt.option('title') %>\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\nAuthor: kahlil-lechelt\n---\n```\n\n##### Call:\n```bash\ngrunt textfile --title=\"This is a title\"\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\nOnly releases with bigger changes will be listed here. Not listed are minor releases only containing small fixes and clean up.\n```\nv0.1.0: initial release\n```","_id":"grunt-textfile@0.1.5","dist":{"shasum":"0dd4a28a900e0b13976b7bb6a946b65f4a1ad0b5","tarball":"https://registry.npmjs.org/grunt-textfile/-/grunt-textfile-0.1.5.tgz","integrity":"sha512-9647eLVRfmVMuPLOP4ICRU5wdR9w0Rp9El4F224D3OtJP9jx71cZEjguyfqxbsfTP31SXVx9v2OjxTiBje3Syw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsEnr8jwBn0Xm9LwB28uOivsUCGNRqlV/lUxBT+xobWQIhAKeBuE0gbFvPWBSRLSsn1l6CDRfOrStGHxMHO/1yByb5"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"kahlil","email":"kahlil@kahlil.co"},"maintainers":[{"name":"kahlil","email":"kahlil@kahlil.co"}],"directories":{}},"0.1.6":{"name":"grunt-textfile","description":"A grunt task to quickly create text files for text file based blogging.","version":"0.1.6","homepage":"https://github.com/kahlil/grunt-textfile","author":{"name":"Kahlil Lechelt","email":"hello@kahlil.co","url":"http://kahlil.co"},"repository":{"type":"git","url":"git://github.com/kahlil/grunt-textfile.git"},"bugs":{"url":"https://github.com/kahlil/grunt-textfile/issues"},"licenses":[{"type":"MIT","url":"https://github.com/kahlil/grunt-textfile/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"string":"~1.4.0"},"readme":"# grunt-textfile\n\n> A grunt task to quickly create text files for text file based blogging.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-textfile --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-textfile');\n```\n\n## The \"textfile\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `textfile` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    },\n    article: {\n      options: {\n          template: 'kirby-article.tpl',\n          urlFormat: 'PREFIX-SLUG/article.txt'\n      }\n    }\n  }\n})\n```\n\n#### Templates\n\nStore your templates in the templates folder and use the [`grunt.template`](http://gruntjs.com/api/grunt.template) and the [`grunt.option`](http://gruntjs.com/api/grunt.option) API for placeholders.\n\nExample template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: Jean-Luc Picard\n----\nText:\n``` \n\n### Options\n\n#### options.template\nType: `String`  \nDefault value: `'example.tpl'`  \n\n#### options.templateDir\nType: `String`  \nDefault value: `'templates'`  \n\n#### options.templateDir\nDestination for the generated file. Needs to be set to the folder in which your text files are stored.  \nType: `String`  \nDefault value: `'tmp'`  \n\n#### options.urlDateFormat\nIn case you need to use the date the name of the generated file, you can change the format with this option.  \nType: `String`  \nDefault value: `'yyyy-mm-dd'`  \n\n#### options.urlFormat\nType: `String`  \nDefault Value: 'PREFIX-SLUG/article.link.txt'  \n\nThis option lets you set the desired formatting of the filename. There are 3 keywords you can use in here: \n\n```\n// PREFIX is needed for Kirby blogs. It prepends an ascending number to the folder name \n// of the folder containing your textfile\n'PREFIX' \n// This keyword is replaced by the slug generated with the title\n'SLUG'\n// This keyword is replaced by the date of today \n// formatted via options.urlDateFormat\n'DATE'\n```\n\n### Usage Examples\n\n#### Kirby Link Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog'\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: kahlil-lechelt\n----\nText:\n```\n\n##### Call:\n```bash\ngrunt textfile --link=\"http://thisisalink.net\" --title=\"This is a title\"\n``` \n\n#### Jekyll Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: '_posts'\n    },\n    article: {\n      options: {\n        template: 'jekyll-article.tpl',\n        urlFormat: 'DATE-SLUG.md'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```Handlebars\n---\nTitle: <%= grunt.option('title') %>\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\nAuthor: kahlil-lechelt\n---\n```\n\n##### Call:\n```bash\ngrunt textfile --title=\"This is a title\"\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\nTo run the tests clone this repo, do `npm install` and then `grunt`.\n\n## Release History\nOnly releases with bigger changes will be listed here. Not listed are minor releases only containing small fixes and clean up.\n```\nv0.1.0: initial release\n```","_id":"grunt-textfile@0.1.6","dist":{"shasum":"01f57ef3dc4887ea2c6c89b4595f02d850523ab9","tarball":"https://registry.npmjs.org/grunt-textfile/-/grunt-textfile-0.1.6.tgz","integrity":"sha512-FKe2yfCUnnJnCl5OZCyNKi6JYzxwnXSVG8EXLnN9l+Y9K5ffJbmw5fUmvAXPUv8+Lmbn2OY/dzl8IYvL2YlwyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOVZF+4s36KVzgQpexJ3U4pDnPLXL6zal15m46YWaL+QIgNFdfrEY12Qu49DFayE93xgYED3VGBUGtQHTv2FFs9gU="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"kahlil","email":"kahlil@kahlil.co"},"maintainers":[{"name":"kahlil","email":"kahlil@kahlil.co"}],"directories":{}},"0.1.7":{"name":"grunt-textfile","description":"A grunt task to quickly create text files for text file based blogging.","version":"0.1.7","homepage":"https://github.com/kahlil/grunt-textfile","author":{"name":"Kahlil Lechelt","email":"hello@kahlil.co","url":"http://kahlil.co"},"repository":{"type":"git","url":"git://github.com/kahlil/grunt-textfile.git"},"bugs":{"url":"https://github.com/kahlil/grunt-textfile/issues"},"licenses":[{"type":"MIT","url":"https://github.com/kahlil/grunt-textfile/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"string":"~1.4.0"},"readme":"# grunt-textfile\n\n> A grunt task to quickly create text files for text file based blogging.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-textfile --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-textfile');\n```\n\n## The \"textfile\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `textfile` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n      openFile: true\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    },\n    article: {\n      options: {\n          template: 'kirby-article.tpl',\n          urlFormat: 'PREFIX-SLUG/article.txt'\n      }\n    }\n  }\n})\n```\n\n#### Templates\n\nStore your templates in the templates folder and use the [`grunt.template`](http://gruntjs.com/api/grunt.template) and the [`grunt.option`](http://gruntjs.com/api/grunt.option) API for placeholders.\n\nExample template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: Jean-Luc Picard\n----\nText:\n``` \n\n### Options\n\n#### options.template\nType: `String`  \nDefault value: `'example.tpl'`  \n\n#### options.templateDir\nType: `String`  \nDefault value: `'templates'`  \n\n#### options.templateDir\nDestination for the generated file. Needs to be set to the folder in which your text files are stored.  \nType: `String`  \nDefault value: `'tmp'`  \n\n#### options.urlDateFormat\nIn case you need to use the date the name of the generated file, you can change the format with this option.  \nType: `String`  \nDefault value: `'yyyy-mm-dd'`  \n\n#### options.urlFormat\nType: `String`  \nDefault Value: 'PREFIX-SLUG/article.link.txt'  \n\nThis option lets you set the desired formatting of the filename. There are 3 keywords you can use in here: \n\n```\n// PREFIX is needed for Kirby blogs. It prepends an ascending number to the folder name \n// of the folder containing your textfile\n'PREFIX' \n// This keyword is replaced by the slug generated with the title\n'SLUG'\n// This keyword is replaced by the date of today \n// formatted via options.urlDateFormat\n'DATE'\n```\n\n#### options.openFile\nSpecify if you want the generated file to opened in an editor.  \nType: `Boolean`  \nDefault Value: `false`\n\n#### options.openWith\nSpecify which editor you want the generated file to be opened with.  \nType: `String`  \nDefault Value: `subl`\n\n### Usage Examples\n\n#### Kirby Link Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n      openFile: true\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: kahlil-lechelt\n----\nText:\n```\n\n##### Call:\n```bash\ngrunt textfile --link=\"http://thisisalink.net\" --title=\"This is a title\"\n``` \n\n#### Jekyll Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: '_posts',\n      openFile: true\n    },\n    article: {\n      options: {\n        template: 'jekyll-article.tpl',\n        urlFormat: 'DATE-SLUG.md'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```Handlebars\n---\nTitle: <%= grunt.option('title') %>\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\nAuthor: kahlil-lechelt\n---\n```\n\n##### Call:\n```bash\ngrunt textfile --title=\"This is a title\"\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\nTo run the tests clone this repo, do `npm install` and then `grunt`.\n\n## Release History\nOnly releases with bigger changes will be listed here. Not listed are minor releases only containing small fixes and clean up.\n```\nv0.1.7: add 'openFile' and 'openFile' options to open the generated file in an editor.\nv0.1.0: initial release.\n```","_id":"grunt-textfile@0.1.7","dist":{"shasum":"c890cd9799ba1c6eed204495eb4639b715d8071f","tarball":"https://registry.npmjs.org/grunt-textfile/-/grunt-textfile-0.1.7.tgz","integrity":"sha512-geTaqtATKfNPW2/mRErkzmDraydnNM+QGScXq6WUGtg956SWuIZOKpZmYQqkfNNevYRnHDHnPPllog9JWTwEFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGoSVceNGbpH6pZEvWPU/2mmhjivZ8USiCzvU3wvUyJQAiAMuVnjH7FRl1qyObuoebQAG43SECyv1/bu1+ff9uo2XA=="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"kahlil","email":"kahlil@kahlil.co"},"maintainers":[{"name":"kahlil","email":"kahlil@kahlil.co"}]},"0.2.0":{"name":"grunt-textfile","description":"A grunt task to quickly create text files for text file based blogging.","version":"0.2.0","homepage":"https://github.com/kahlil/grunt-textfile","author":{"name":"Kahlil Lechelt","email":"hello@kahlil.co","url":"http://kahlil.co"},"repository":{"type":"git","url":"git://github.com/kahlil/grunt-textfile.git"},"bugs":{"url":"https://github.com/kahlil/grunt-textfile/issues"},"licenses":[{"type":"MIT","url":"https://github.com/kahlil/grunt-textfile/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"string":"~1.4.0"},"readme":"# grunt-textfile\n\n![grunt-textfile](https://raw.github.com/kahlil/grunt-textfile/master/grunt-textfile.jpg)\n\n> A grunt task to quickly create text files for text file based blogging.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-textfile --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-textfile');\n```\n\n## The \"textfile\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `textfile` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n      openFile: true\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt',\n        customVars: {\n          foo: 'bar',\n          bar: 'baz'\n        }\n      }\n    },\n    article: {\n      options: {\n          template: 'kirby-article.tpl',\n          urlFormat: 'PREFIX-SLUG/article.txt'\n      }\n    }\n  }\n})\n```\n\n#### Templates\n\nStore your templates in the templates folder and use the [`grunt.template`](http://gruntjs.com/api/grunt.template) and the [`grunt.option`](http://gruntjs.com/api/grunt.option) API for placeholders.\n\nExample template:\n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: Jean-Luc Picard\n----\nFoo: <%= foo %>\n----\nText:\n```\n\n### Options\n\n#### options.template\nType: `String`  \nDefault value: `'example.tpl'`\n\n#### options.templateDir\nType: `String`  \nDefault value: `'templates'`\n\n#### options.templateDir\nDestination for the generated file. Needs to be set to the folder in which your text files are stored.  \nType: `String`  \nDefault value: `'tmp'`\n\n#### options.urlDateFormat\nIn case you need to use the date the name of the generated file, you can change the format with this option.  \nType: `String`  \nDefault value: `'yyyy-mm-dd'`\n\n#### options.urlFormat\nType: `String`  \nDefault Value: 'PREFIX-SLUG/article.link.txt'\n\nThis option lets you set the desired formatting of the filename. There are 3 keywords you can use in here:\n\n```\n// PREFIX is needed for Kirby blogs. It prepends an ascending number to the folder name\n// of the folder containing your textfile\n'PREFIX'\n// This keyword is replaced by the slug generated with the title\n'SLUG'\n// This keyword is replaced by the date of today\n// formatted via options.urlDateFormat\n'DATE'\n```\n\n#### options.openFile\nSpecify if you want the generated file to opened in an editor.  \nType: `Boolean`  \nDefault Value: `false`\n\n#### options.openWith\nSpecify which editor you want the generated file to be opened with.  \nType: `String`  \nDefault Value: `subl`\n\n#### options.customVars\nSet some custom variables to use within your template.  \nType: `Object`  \nNo default value\n\n### Usage Examples\n\n#### Kirby Link Post\n\n##### Gruntfile:\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n      openFile: true\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt',\n        customVars: {\n          foo: 'bar'\n        }\n      }\n    }\n  },\n})\n```\n\n##### Template:\n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: kahlil-lechelt\n----\nFoo: <%= foo %>\n----\nText:\n```\n\n##### Call:\n```bash\ngrunt textfile --link=\"http://thisisalink.net\" --title=\"This is a title\"\n```\n\n#### Jekyll Post\n\n##### Gruntfile:\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: '_posts',\n      openFile: true\n    },\n    article: {\n      options: {\n        template: 'jekyll-article.tpl',\n        urlFormat: 'DATE-SLUG.md'\n      }\n    }\n  },\n})\n```\n\n##### Template:\n\n```Handlebars\n---\nTitle: <%= grunt.option('title') %>\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\nAuthor: kahlil-lechelt\n---\n```\n\n##### Call:\n```bash\ngrunt textfile --title=\"This is a title\"\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\nTo run the tests clone this repo, do `npm install` and then `grunt`.\n\n## Release History\nOnly releases with bigger changes will be listed here. Not listed are minor releases only containing small fixes and clean up.\n```\nv0.1.7: add 'openFile' and 'openFile' options to open the generated file in an editor.\nv0.1.0: initial release.\n```\n\n## Cool Badge\n\n[![NPM](https://nodei.co/npm/grunt-textfile.png)](https://nodei.co/npm/grunt-textfile/)\n","readmeFilename":"README.md","_id":"grunt-textfile@0.2.0","dist":{"shasum":"478967fbfe45fc36d8faf30d3a987dbc00dbe3bd","tarball":"https://registry.npmjs.org/grunt-textfile/-/grunt-textfile-0.2.0.tgz","integrity":"sha512-H6EE3I8wnZZj+vxQE67ZPWEyppJ9IZJnSe4E6czJz3Ljk8ZjrVJqFLcKR2zNJe5EIXVYCdQtVJmYhFiX3Evlvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+xTHERUsvW+coeFkXiDxUL4N6qkUTrvRq/TQPMoUdYAiAGvcpUiVjL7N1ioI/Smbl4mHqRzhmLcbMKMbTVWDGrfA=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"kahlil","email":"kahlil@kahlil.co"},"maintainers":[{"name":"kahlil","email":"kahlil@kahlil.co"}]}},"readme":"# grunt-textfile\n\n> A grunt task to quickly create text files for text-based blogging.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-textfile --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-textfile');\n```\n\n## The \"textfile\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `textfile` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog',\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    },\n    article: {\n      options: {\n          template: 'kirby-article.tpl',\n          urlFormat: 'PREFIX-SLUG/article.txt'\n      }\n    }\n  }\n})\n```\n\n#### Templates\n\nStore your templates in the templates folder and use the [`grunt.template`](http://gruntjs.com/api/grunt.template) and the [`grunt.option`](http://gruntjs.com/api/grunt.option) API for placeholders.\n\nExample template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: Jean-Luc Picard\n----\nText:\n``` \n\n### Options\n\n#### options.template\nType: `String`  \nDefault value: `'example.tpl'`  \n\n#### options.templateDir\nType: `String`  \nDefault value: `'templates'`  \n\n#### options.templateDir\nDestination for the generated file. Needs to be set to the folder in which your text files are stored.  \nType: `String`  \nDefault value: `'tmp'`  \n\n#### options.urlDateFormat\nIn case you need to use the date the name of the generated file, you can change the format with this option.  \nType: `String`  \nDefault value: `'yyyy-mm-dd'`  \n\n#### options.urlFormat\nType: `String`  \nDefault Value: 'PREFIX-SLUG/article.link.txt'  \n\nThis option lets you set the desired formatting of the filename. There are 3 keywords you can use in here: \n\n```\n// PREFIX is needed for Kirby blogs. It prepends an ascending number to the folder name \n// of the folder containing your textfile\n'PREFIX' \n// This keyword is replaced by the slug generated with the title\n'SLUG'\n// This keyword is replaced by the date of today \n// formatted via options.urlDateFormat\n'DATE'\n```\n\n### Usage Examples\n\n#### Kirby Link Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: 'content/blog'\n    },\n    linkpost: {\n      options: {\n        template: 'kirby-linkpost.tpl',\n        urlFormat: 'PREFIX-SLUG/article.link.txt'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```\nTitle: <%= grunt.option('title') %>\n----\nLink: <%= grunt.option('link') %>\n----\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\n----\nAuthor: kahlil-lechelt\n----\nText:\n```\n\n##### Call:\n```bash\ngrunt textfile --link=\"http://thisisalink.net\" --title=\"This is a title\"\n``` \n\n#### Jekyll Post\n\n##### Gruntfile: \n```js\ngrunt.initConfig({\n  textfile: {\n    options: {\n      dest: '_posts'\n    },\n    article: {\n      options: {\n        template: 'jekyll-article.tpl',\n        urlFormat: 'DATE-SLUG.md'\n      }\n    }\n  },\n})\n```\n\n##### Template: \n\n```Handlebars\n---\nTitle: <%= grunt.option('title') %>\nDate: <%= grunt.template.today('yyyy-mm-dd') %>\nAuthor: kahlil-lechelt\n---\n```\n\n##### Call:\n```bash\ngrunt textfile --title=\"This is a title\"\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```\nv0.1.0: initial release\n```","maintainers":[{"name":"distilledhype","email":"hello@kahlil.co"}],"time":{"modified":"2022-06-18T16:09:04.588Z","created":"2013-06-06T10:37:36.934Z","0.1.0":"2013-06-06T10:37:38.923Z","0.1.1":"2013-06-06T10:53:58.135Z","0.1.2":"2013-06-06T12:47:41.880Z","0.1.3":"2013-06-06T12:54:55.203Z","0.1.4":"2013-06-06T13:07:26.156Z","0.1.5":"2013-06-06T13:08:40.807Z","0.1.6":"2013-06-06T13:26:18.044Z","0.1.7":"2013-06-08T20:21:22.870Z","0.2.0":"2013-07-29T18:48:07.374Z"},"author":{"name":"Kahlil Lechelt","email":"hello@kahlil.co","url":"http://kahlil.co"},"repository":{"type":"git","url":"git://github.com/kahlil/grunt-textfile.git"}}