gruntjs / grunt-contrib-pug

Compile Pug templates.
http://gruntjs.com/
MIT License
328 stars 77 forks source link

Add option to preset keyword directories #164

Closed geoffdavis92 closed 8 years ago

geoffdavis92 commented 8 years ago

In Jekyll, all files that you want to {% include %} are in the _includes directory, the layouts in the _layouts directory, data in the _data directory, etc.

It would be great if Pug could allow users to set an object to map certain keywords such as include, extends, and + (mixins) to set directories. This would keep projects consistent with minimal configuration on a Gruntfile.js, and it would keep files terse and nest-friendly, allowing include ../layouts/includes/filename to simply be include filename.

shinnn commented 8 years ago

Open a feature request in https://github.com/pugjs/pug/issues instead.