MixTemplates.Cache (mix_templates v0.2.3)

Manage the cache of local templates. These are stored as Elixir projects under MIX_HOME/templates.

Link to this section Summary

Functions

Format a list of available templates

Return the template's module, or nil if it doesn't exist

If a template's name starts with a "." or a "/", assume it is a local file path, otherwise treat it as a template name

Install a local directory tree into the named slot in the cache.

Return a list of locally installed templates.

Given the path to a project containing a template, load the file in lib/ and return its Module

remove a template from the cache

Link to this section Functions

Link to this function

display_list_of_templates()

Format a list of available templates

Link to this function

display_template_info(template, arg2)

Return the template's module, or nil if it doesn't exist

Link to this function

find_template(name)

If a template's name starts with a "." or a "/", assume it is a local file path, otherwise treat it as a template name

Link to this function

install_from_local_tree(source)

Install a local directory tree into the named slot in the cache.

Return a list of locally installed templates.

Link to this function

load_template_module(path)

Given the path to a project containing a template, load the file in lib/ and return its Module

remove a template from the cache

Link to this function

template_path(name)

Link to this function

uninstall_template(project)