All Questions
Tagged with pug backbone.js
61
questions
0
votes
1
answer
73
views
How to translate class not equals (class=!) from jade to html?
I have problems with writing this code in html. Since div already has a class of form-group i dont know how to add a class exeption to it inline.
|<% if (!success) { %>
div.form-group(...
2
votes
0
answers
718
views
Backbone.Marionette not recognising Marionette function
I have the following jade template, containing the link to Marionette (on a CDN) and all the dependencies, which I've checked and are listed in the correct order. However, the following code:
extends ...
0
votes
1
answer
221
views
Jade Template for Backbone usage
I have a question regarding Jade. I want to use it with Backbone and it works as to this question how-to-define-jade-template-for-using-with-backbone. But now I need to create a URL. I tried it like ...
2
votes
0
answers
43
views
Can't display Backbone/Underscore template in Jade view
I'm trying to link the template in my .jade view to my Backbone model, and it's just not displaying anything inside my template script.
My .jade view:
extends ../layout
block content
.page
...
0
votes
1
answer
28
views
Backbone with Jade issues with tag parameters
Very annoying problem I'm facing. I want to dynamically enter the url of an image using backbone. I thought the following would do.
img(src="<%= image %>" width="100%" height="auto")
However ...
1
vote
0
answers
54
views
Rendering to Jade template. Backbone and Browserify
I am trying to use a combination of Backbone, Jade and Browserify in my new app. As a test I am trying to render some content from my view to my Jade template. I get no error or no output to my ...
0
votes
1
answer
665
views
TypeError: n is undefined in underscore template
I am using underscore temperating in jade.
index.jade
extends layout
block content
.wrap
.container-fluid#container
script(type='text/template' id='main-template')
.row
.col-xs-8....
0
votes
1
answer
518
views
Getting variables from res.send in Jade Template
I am pretty new to using node.js and Jade. I self taught from some tutorials on udemy and I am having some issues with combining Jade, Express and Backbone per one of the examples. I used res.send to ...
1
vote
1
answer
476
views
How to pass a callback function to a compiled Jade template without declaring it globally in javascript
I have created a Backgrid table to manage users. One of the functions of that table is to allow paswords to be changed by an administrator. This is achieved by adding a button cell column to the ...
0
votes
1
answer
52
views
Backbone Collection only fetched after executing alert
Hey I am new to backbone and Handlebars and something strange is happening with my code that I cannot figure out. Basically my node app queries mongo for some data which is then used by backbone and ...
0
votes
0
answers
1k
views
Sending data to the response along with a redirect in Express and NodeJS
I am trying to send data from MongoDB through a redirect using Express.
I am fairly new to working with the server and connecting it to a front-end, so please be easy on me if I have any huge ...
-1
votes
1
answer
622
views
$(document).ready not called in brunch/jade/backbone project
I have a project with brunch/jade/backbone that uses an index.html file which calls in everything using backbone, and jade.
index.html (parts):
<html>
<head>
[...]
<script type="...
0
votes
1
answer
95
views
Backbone constructor not working
I'm trying a simple backbone program using express which dispalys name and twitter handle and allows its update by using a template in jade. However, its not working.
Here is my server.js file:
var ...
0
votes
1
answer
774
views
Send variable from backbone view to jade template
I have the following template in my index.jade:
....
<script type="text/template" id="sample-template">
a(href="<%= link.href %>") <%= link.title %>
</script>
....
And I ...
0
votes
1
answer
2k
views
Localhost not working with node js
Following is a small server (app.js) which is is simply calling index.jade file to add jquery.js, underscore.js and backbone.js for later use. But its not working.
My directory structure is:
base
...