Basic Folder Structure
A template is a directory with certain expected files and folders. You can add as many other files as you like.
If you are following the steps for creating templates, you should have defined
$TEMPLATE as a variable for a directory.
Those are the essential ingredients to a template:
standardcontains a directory that forms the basis for any code base directory that will be created from your code. The standard files and folders will always be there. Every file is a handlebars file, and should contain an
- See partials for an understanding of the
- See helpers for an understanding of the
staticdirectory contains any handlebars files used for generating
generic.hbshandlebars file is the basis for any dynamic files generated. (NOTE: a
dynamicfolder is planned, thereby allowing to have multiple dynamic file templates. At present, you can use partials and conditionals to generate what you need.)
sample.ns.ymlshould contain an ns file that will be the initial one received by users of your template. It should ideally show what your template can do.
README.mdfile describes the template.
- The config file
config.ymlfile tells about the various configurations.