html-rails Server side gem html-rails Extension supported template.html Client side var html = HTMLTemplates["path/to/your/template"]()