Skip to content

Commit

Permalink
Merge pull request #18 from rafaelrinaldi/master
Browse files Browse the repository at this point in the history
Adding a real template file to the bundle
  • Loading branch information
john muhl committed Oct 14, 2012
2 parents 3423647 + f6e7863 commit 0ad0107
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Templates/HTML5.tmTemplate/info.plist
Original file line number Diff line number Diff line change
@@ -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>
20 changes: 20 additions & 0 deletions Templates/HTML5.tmTemplate/template.html
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 0ad0107

Please sign in to comment.