A TextMate Bundle & Sublime Text 2 Package for Google Closure Templates.
The bundle includes syntax highlighting, the ability to compile or evaluate Closure template inline, convenient symbol listing for functions, and a number of expando snippets.
Patches for additions are always welcome.
mkdir -p ~/Library/Application\ Support/TextMate/Bundles &&
cd ~/Library/Application\ Support/TextMate/Bundles &&
git clone git://github.com/anvie/SoyTemplate.git SoyTemplate.tmbundle
For Sublime Text 2 on OS X:
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages &&
git clone git://github.com/anvie/SoyTemplate.git SoyTemplate
For Sublime Text 2 on Windows 7 using Cygwin:
cd /cygdrive/c/Users/$USER/AppData/Roaming/Sublime\ Text\ 2/Packages/ && git clone git://github.com/anvie/SoyTemplate.git SoyTemplate
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages/ &&
git clone git://github.com/anvie/SoyTemplate.git SoyTemplate &&
zip -r SoyTemplate.sublime-package SoyTemplate &&
rm -rf SoyTemplate
- Restart Sublime Text
- Open Soy file
- Optional CMD+SHIFT+P
- Set Syntax: SoyTemplate