Project: aptanastudio
Issue APSTUD-2134: Add .location property to file templates
{html}

From the current system:

template "Custom Template" do |t| t.filetype = "*.html" t.invoke do |context| ENV['TM_DATE'] = Time.now.strftime("%Y-%m-%d") raw_contents = IO.read("#{File.dirname(ENV['TM_BUNDLE_SUPPORT'])}/templates/html5.html") raw_contents.gsub(/\$\{([^}]*)\}/) {|match| ENV[match[2..-2]] } end end

bringing it inline with something like project templates:

project_template "Basic Web Template2" do |t| t.type = :web t.location = "templates/basic_web_template.zip" t.description = "A basic template which includes only a default index.html file" end

i.e.:

template "Custom Template" do |t| t.filetype = "*.html" t.location = "templates/html5.html" end

By default this WOULD DO environment substitution.

{html} Also add a "replace_parameters" setting to allow turning on/off parameter substitution (identical to project templates)
Story points: 1