Permalink
Browse files

Adding a real template file to the bundle. No need to use the templat…

…e snippet anymore.
  • Loading branch information...
1 parent 3423647 commit f6e7863f7d8a3ec0a30eb25a94e5d9ffed847d21 Rafael Rinaldi committed Oct 10, 2012
Showing with 40 additions and 0 deletions.
  1. +19 −0 Templates/HTML5.tmTemplate/info.plist
  2. +20 −0 Templates/HTML5.tmTemplate/template.html
  3. +1 −0 info.plist
View
19 Templates/HTML5.tmTemplate/info.plist
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>command</key>
+ <string>if [[ ! -f "$TM_NEW_FILE" ]]; then
+ TM_YEAR=`date +%Y` \
+ TM_DATE=`date +%Y-%m-%d` \
+ perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
+ &lt; template.html &gt; "$TM_NEW_FILE"
+fi</string>
+ <key>extension</key>
+ <string>txt</string>
+ <key>name</key>
+ <string>HTML5</string>
+ <key>uuid</key>
+ <string>3B4E27DA-1677-4BD0-A965-3B76BEB6B60D</string>
+</dict>
+</plist>
View
20 Templates/HTML5.tmTemplate/template.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+
+<html lang="en-US">
+
+ <head>
+
+ <meta charset="UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="author" content="${TM_ORGANIZATION_NAME}">
+
+ <title>${TM_NEW_FILE_BASENAME}</title>
+
+ <base href="./">
+
+ </head>
+
+ <body>
+ </body>
+
+</html>
View
1 info.plist
@@ -524,6 +524,7 @@
<string>CEF25D24-ED3B-445E-890E-124984B1C842</string>
<string>067A025E-9E05-493D-A57F-2B563927213D</string>
<string>13A82635-CD7A-4EDC-B1BB-306F905DF2BE</string>
+ <string>3B4E27DA-1677-4BD0-A965-3B76BEB6B60D</string>
</array>
<key>uuid</key>
<string>79DE1A1A-DCD0-4E2F-B20B-8FEFE97A7270</string>

0 comments on commit f6e7863

Please sign in to comment.