Quantcast
Channel: JavaScriptMVC Forum
Browsing all 3491 articles
Browse latest View live

Unescape not Working in EJS

I have been searching the way to unescape string in EJS.It seems <%- code %> is the correct answer as mentioned in following...

View Article


Re : Links Are Broken http://javascriptmvc.com/builder.html

Still broken?

View Article


Re : Unescape not Working in EJS

That answer is from over a year ago. I'd always start a search for something like this at the CanJS docs.On the EJS page you'll see that <%== is used for displaying unescaped content

View Article

"micro" controller for each list item - i am messing this up, need help!!

Hi,I have a controller that is responsible to print out a list of items, in this controller i have 2 templates, one generates the "<li>"s, and the other outputs the content of each li:...

View Article

Re : "micro" controller for each list item - i am messing this up, need help!!

Element callbacks need to be done inside of the HTML tag. You have:<div class="ranking"><%= (el)-> new options.ratingtutor($(el).find('.ranking'), {item: item}) %></div>When what...

View Article


Re : "micro" controller for each list item - i am messing this up, need help!!

Hi,Didn´t  notice  that.I am going to try it out later and let you know.Thanks a lot.Cheers,Linton Fernandes

View Article

Re : Simple question about home page demo (canjs.com)

Hi,Because Model.List inherits from Observable, every time list is changed, view will update itself.Or in other words, when you pass this type of lists to the views, views will observe any change in...

View Article

Re : Unescape not Working in EJS

Thank you very much for the quick reply Curtis!

View Article


Re : "micro" controller for each list item - i am messing this up, need help!!

Hi,Now its working   <div class="ranking" <% (el)-> new options.ratingtutor(el, {item: item}) %>></div>Thanks a lot.Cheers,Linton Fernandes

View Article


CanJS AMD

Is there an easy way to pull down the latest code from Github and generate the AMD version?Right now it is only available via the download listed on the website.

View Article

Re : CanJS AMD

The AMD distributables are part of the build process which is described in theContributing guide (I still think the "Making a build" part should be featured somewhat more prominently). Which should be...

View Article

Re : Mustache vs ejs

EJS can do the same thing, like:<% list(items, function(){ %>  <li>....</li><% }) %>It's probably possible in 2.0.2 to turn off binding by doing it in a helper...

View Article

Re : Mustache vs ejs

Interesting... Last time when I played with ejs (in version 1.1.x) it completely re-rendered the whole list, that's why I chose mustache.

View Article


How to make working JqueryMX ?

Hi I am struggling to make working my newbie app, It seems like my app does not have Jquery loaded have a look of my error below. I don't understand why it is not working and I have followed all the...

View Article

Re : How to make working JqueryMX ?

remove .then, it is super deprecated.Also, change, can/lib/jquery.1.9.1.js to juststeal('jquery'If you want to learn from something, check...

View Article


Re : How to make working JqueryMX ?

Ok thank you, yes I will check out but I need a working Jquery environment and it is not working yes with what you  replied. now I have :Do you know where is the problem now ?Uncaught TypeError: Object...

View Article

Re : How to make working JqueryMX ?

Thanks but another problem appeared, can you please help me to solve it ?

View Article


Re : Mustache vs ejs

Thnx 4 information!

View Article

can.compute(initialValue, setter) doesn't work in can.Component

I'm trying to use can.compute seter with initial value. Initial value is works correctly, but setter doesn't works. I mean this construction "can.compute(initialValue, setterFn)" behaves like this...

View Article

Re : can.compute(initialValue, setter) doesn't work in can.Component

What are you trying to do with that compute?  This kind of thing might be a bug, but is a strange use case.  You might be wanting to use the setter plugin and instead do:can.Component.extend({    tag:...

View Article
Browsing all 3491 articles
Browse latest View live