Module: P

Defined in:
lib/p.rb,
lib/p/actions.rb,
lib/p/builder.rb,
lib/p/command.rb,
lib/p/template.rb,
lib/p/actions/template_file.rb

Defined Under Namespace

Modules: Actions Classes: Builder, Command, FileNotFound, Template, TemplateNotFound

Constant Summary collapse

VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.template_pathsObject



7
8
9
10
11
12
# File 'lib/p.rb', line 7

def self.template_paths
  template_paths = []
  template_paths << File.join(ENV['HOME'], ".p") # ~/.p directory
  template_paths << File.join(File.dirname(__FILE__), "templates") # Built-in template directory
  template_paths
end