gruntjs - output directory structure in assemble -
i creating static site using grunt.js , assemble. have data.json file used building pages using assemble:
{ "articles": [ { "author": "brian", "headline": "a generation on hook 1", "body": "cars, , start businesses means of debt", "slug" : "n-hook1", "publish_on": "2014-10-10t04:00:00+00:00", "url": "http://example.com/2014/oct/08/n-hook1/", }, { "author": "brian", "headline": "a generation on hook 2", "body": "as millions go college, purchase homes,", "slug" : "n-hook2", "publish_on": "2014-10-12t04:00:00+00:00", "url": "http://example.com/2014/oct/08/n-hook2/", }, ], } i output created in next directories this: 2014/oct/08/n-hook1/index.html. how can create directories in assemble?
is possible assemble.io? if there better, allow me know. new js world , direction. did see this question seems involve placing files in different directories. maybe have write helper? if so, not sure start.
i assemble because pages generated upt o client side rendering, , nowadays json data. not sure if there better.
the grunt-assemble-permalinks plugin solution, need.
gruntjs yeoman assemble grunt-assemble
No comments:
Post a Comment