Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #18 from rafaelrinaldi/master

Adding a real template file to the bundle
  • Loading branch information...
commit 0ad0107a601309701750cfab875e848362defe4a 2 parents 3423647 + f6e7863
@johnmuhl authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.