gen_template_template v0.1.5 Mix.Gen.Template.Template

A template for creating templates.

See the moduledoc for MixTemplates for ideas on what to do next.

Summary

Functions

Return the name of this template as an atom. This is the name passed to the gen command

Override this function to process command line options and set values passed into the template via assigns

Return the short description of this template, or nil

Return the absolute path to the tree that is to be copied when instantiating this template. This top-level dir will typically just contain a directory called $APP_NAME$

Functions

name()

Return the name of this template as an atom. This is the name passed to the gen command.

populate_assigns(assigns, options)

Override this function to process command line options and set values passed into the template via assigns.

short_desc()

Return the short description of this template, or nil.

source_dir()

Return the absolute path to the tree that is to be copied when instantiating this template. This top-level dir will typically just contain a directory called $APP_NAME$.