Permalink
Browse files

Revert "Revert "Fix APSTUD-2134:Add .location property to file templa…

…tes""

This reverts commit 8b1f86e.
  • Loading branch information...
1 parent 8b1f86e commit e81417b39a1b74846f2b142e619487796b559311 Allen Yeung committed Jul 21, 2011
Showing with 3 additions and 7 deletions.
  1. +2 −2 cache.yml
  2. +1 −5 templates/templates.rb
View
@@ -164,11 +164,11 @@ children:
displayName: JavaScript
path: bundle.rb
scope: source.js
-- !!com.aptana.scripting.model.EnvironmentElement {customProperties: null, displayName: environment-e579a848-8cab-4c64-9d14-8fead7ef332f,
+- !!com.aptana.scripting.model.EnvironmentElement {customProperties: null, displayName: environment-8d222678-667e-467d-bc47-37dc2f48b02f,
path: bundle.rb, scope: source.js}
- !!com.aptana.scripting.model.SmartTypingPairsElement
customProperties: null
- displayName: smart_typing_pairs-c68ac842-26ff-4041-af14-7196f30244e2
+ displayName: smart_typing_pairs-b4d76548-94ec-44aa-9d8c-d2a3f973d610
pairs: ['"', '"', (, ), '{', '}', '[', ']', '''', '''']
path: bundle.rb
scope: source.js
View
@@ -2,9 +2,5 @@
template "JavaScript Template" do |t|
t.filetype = "*.js"
- t.invoke do |context|
- ENV['TM_DATE'] = Time.now.strftime("%Y-%m-%d")
- raw_contents = IO.read("#{ENV['TM_BUNDLE_SUPPORT']}/../templates/template.js")
- raw_contents.gsub(/\$\{([^}]*)\}/) {|match| ENV[match[2..-2]] }
- end
+ t.location = "templates/template.js"
end

0 comments on commit e81417b

Please sign in to comment.