Questions tagged [jst]
47 questions
59
votes
11 answers
Cannot add a project to a Tomcat server in Eclipse
I cannot add my project to a server in Eclipse - why is that?
I installed all necessary tools (Web Dev, Java EE, Server Adapters, and Tomcat itself, everything)
I configured the runtime environments, adjusted all Java Versions to JDK 6 (because it…

F.P
- 17,421
- 34
- 123
- 189
12
votes
1 answer
Partials in Coffee HAML (.hamlc)
I am using backbone.js on a rails backend with HAML Coffee, which is compiled by haml_coffee_assets. There is some duplication in my templates.
Is there a way to create rails-like partials to dry up my templates?
Addition: Can I do…

iblue
- 29,609
- 19
- 89
- 128
8
votes
2 answers
Haml syntax highlight in Sublime Text 2 for .hamlc templates
I installed the HAML textmate bundle, that display syntax highlight for .haml templates, but I also have Coffee HAML templates that are named like
layout.jst.hamlc
and I would like to add syntax highlight as well.
The Ruby Haml syntax is good…

tothemario
- 5,851
- 3
- 44
- 39
4
votes
2 answers
Using Client-side Templates in Sails.js
I am new to Sails.js
I am trying to use the assets/templates feature in sails to render data client side but I cannot seem to find any working example.
I am looking for the native Sails solution, without angular or other frameworks. Just load .JST…

Guy Sopher
- 4,402
- 4
- 22
- 36
4
votes
3 answers
Loading ng-include partials from local pre-loaded (JST) template cache
I have my template pre-loaded in a javascript string array, like var t = JST['firstTemplate'], where t would be like,
This scope has a value of {{value}}
How can I use this pre-loaded template in an ng-include directive?
Note that my…
Shyam Habarakada
- 15,367
- 3
- 36
- 47
3
votes
1 answer
Precompile handlebars templates into seperate JST (.js) files with Gulp
I have just recently moved from grunt to gulp and I am wanting to pre-compile my handlebars templates (with .handlebars extension) into separate .js…

pleshy
- 1,468
- 2
- 16
- 22
3
votes
2 answers
ParseError: Unexpected token with Browserify and template files
I'm developing a site using Backbone and I have Watchify running to bundle the application. Everything works fine with the javascript modules, but I am having a problem with .hbs templates, with Watchify throwing parse errors when processing the…

jtwg
- 41
- 2
3
votes
1 answer
jquery file upload plugin template engine?
I got the jquery file upload plugin working on our site:
https://github.com/blueimp/jQuery-File-Upload/wiki/Template-Engine
However it uses a java script template language that was tied in with jquery at one time, but has been discontinued and…

user1456508
- 3,761
- 2
- 15
- 11
2
votes
1 answer
Error compiling erb block to create a javascript template, in Rails Assets
I am migrating an application in Rails 3.2 to a single-page-application architecture, using Backbone.js through the gem backbone-on-rails.
My application views have actually some forms using form_for, like this simple example:
<%= form_for :filter…

viniciuscb
- 123
- 1
- 7
2
votes
0 answers
Precompile Underscore templates without underscore.js dependency
I am using grunt-contrib-jst to precompile my templates and it's all working great. However, I am using this to build a plugin and I want to keep the filesize as small as possible.
I don't use underscore.js in my code, but the precompiled templates…

Cosmin Stamate
- 145
- 1
- 1
- 11
2
votes
1 answer
How to use JST with underscore.js?
I'm having troubles using variables that would normally be no problem with understand.js, but seemingly when you combine JST with underscore.js it seems to struggle.
var something= SD.defaultView.extend({
el: 'page',
template:…

Jamie Hutber
- 26,790
- 46
- 179
- 291
2
votes
2 answers
Rails 3.2+ best practice for using Haml to generate Javascript templates (JST)
I asked a specific question about problems I'm having with a specific gem intended to do this in a separate thread ( https://stackoverflow.com/q/18577033/1206117?sem=2 )
But I feel I may be on the "wrong boat" somehow because all of the questions I…

Thomas Blom
- 103
- 7
1
vote
0 answers
Precompile JST templates in strict mode in SailsJS
I try to compile jst.js with BabelJS, but I faced with the next error:
Aborted due to warnings.
Running "babel:dev" (babel) task
Warning: .tmp/public/jst.js: 'with' in strict mode (3:113)
How can I precompile templates in strict mode?

MonstroDev
- 190
- 2
- 12
1
vote
0 answers
include JST template inside JST
I am using underscopre ( grunt-contrib-jst) JST template to render VIEW.
However, I am in a situation where I need to make reusable html as a partials from template.
can I make a separate .tmpl & include it in parent .tmpl ?
my code looks like
var…

Parag Diwan
- 3,007
- 2
- 19
- 37
1
vote
2 answers
Uncaught ReferenceError: JST is not defined on Rails 4
I've created Rails 4.2 project and tried to use Backbone for frontend.
But when I try to use JST for template, I've got the below error.
Uncaught ReferenceError: JST is not defined
Of course, I included the correspond require sets in…

Samuel Jansson
- 329
- 1
- 3
- 13