Update
Apparently, jQuery templates can be compiled and it helps performance for templates with if statements shown here.
But a
Your template is really simple, you might want to take a look at handlebars.js which is a templating language which has the option to precompile the templates.
It is made by rails and jquery core member Yehuda Katz.