From f6e7863f7d8a3ec0a30eb25a94e5d9ffed847d21 Mon Sep 17 00:00:00 2001 From: Rafael Rinaldi Date: Wed, 10 Oct 2012 19:37:07 -0300 Subject: [PATCH] Adding a real template file to the bundle. No need to use the template snippet anymore. --- Templates/HTML5.tmTemplate/info.plist | 19 +++++++++++++++++++ Templates/HTML5.tmTemplate/template.html | 20 ++++++++++++++++++++ info.plist | 1 + 3 files changed, 40 insertions(+) create mode 100644 Templates/HTML5.tmTemplate/info.plist create mode 100644 Templates/HTML5.tmTemplate/template.html diff --git a/Templates/HTML5.tmTemplate/info.plist b/Templates/HTML5.tmTemplate/info.plist new file mode 100644 index 0000000..b77fbb5 --- /dev/null +++ b/Templates/HTML5.tmTemplate/info.plist @@ -0,0 +1,19 @@ + + + + + command + if [[ ! -f "$TM_NEW_FILE" ]]; then + TM_YEAR=`date +%Y` \ + TM_DATE=`date +%Y-%m-%d` \ + perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \ + < template.html > "$TM_NEW_FILE" +fi + extension + txt + name + HTML5 + uuid + 3B4E27DA-1677-4BD0-A965-3B76BEB6B60D + + diff --git a/Templates/HTML5.tmTemplate/template.html b/Templates/HTML5.tmTemplate/template.html new file mode 100644 index 0000000..e42b143 --- /dev/null +++ b/Templates/HTML5.tmTemplate/template.html @@ -0,0 +1,20 @@ + + + + + + + + + + + ${TM_NEW_FILE_BASENAME} + + + + + + + + + \ No newline at end of file diff --git a/info.plist b/info.plist index 11c8a16..892fe02 100644 --- a/info.plist +++ b/info.plist @@ -524,6 +524,7 @@ CEF25D24-ED3B-445E-890E-124984B1C842 067A025E-9E05-493D-A57F-2B563927213D 13A82635-CD7A-4EDC-B1BB-306F905DF2BE + 3B4E27DA-1677-4BD0-A965-3B76BEB6B60D uuid 79DE1A1A-DCD0-4E2F-B20B-8FEFE97A7270