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

Live binding not working in handler of mustache template

The below handler does not work for live bindingcan.Mustache.registerHelper("each_with_key", function(obj, options) {    var buffer = "",key;    for (key in obj) {        if (obj.hasOwnProperty(key)) {...

View Article


Re : Live binding not working in handler of mustache template

Couple of problems here:1) You are passing attendee.attr() to your template which is just a plain object. Live binding can only happen if you are using Observable values (can.Observe, can.Observe.List...

View Article


Re : Live binding not working in handler of mustache template

Thanks a lot. 

View Article

JqueryUI an production mode

Hello,I would like to use JQueryUI with javascriptMVC, I copied the git repository https://github.com/daffl/jqueryui that provides a JQuery UI version packaged with steal to my project root...

View Article

Re : JqueryUI an production mode

run in debug mode and let us know where the error is.

View Article


Re : Approaches for storing and syncing local (offline) data

http://canjs.us/recipes.html#models-caching_data_in_local_storageThat should give you some ideas.  We do something similar with findAll.

View Article

Re : JqueryUI an production mode

How can I launch the command .\js cookbook\scripts\build.js in debug mode?

View Article

Re : JqueryUI an production mode

./js -d turns on the debugger.

View Article


Re : JqueryUI an production mode

ok thanks...I think that I solved the problem: I steal the show.less file but this file is empty. I removed it and now it builds the application. :)Sandrine.

View Article


Re : can.view Deferred for Sub-Template render

Usually we track all our feature suggestions in the GitHub issues.You can pre-compile Mustache and EJS views into JavaScript e.g. with thecan-compile plugin I wrote. Not sure how you do it with...

View Article

Re : Approaches for storing and syncing local (offline) data

ok, thanks.

View Article

Help Bitovi pick a T-shirt design!

We're working a new Bitovi T-shirt for conferences and general swag purposes. We'd like your input, so please take this simple survey to tell us which one you like best and why. After all, you might be...

View Article

Re : can.view Deferred for Sub-Template render

So I could ask for the flag for "do not update LiveBinding when data-change origin is myself" in GitHub?I will have a look at the can-compiler.If I can call the compilation from within the batch file...

View Article


Externs file for Google Closure

Do you provide a CanJS externs file for use with Google Closure's ADVANCED_OPTIMIZATIONS ?

View Article

EJS Full Lint JS - Does it actually work in JMVC?

I'm keen to get EJS Full Lint JS working in JMVC so I can pinpoint bugs in EJS files rather than receive vague "EJS not work" console logs. I've stealed in the ejs_fulllint.js file which I downloaded...

View Article


Re : can.view Deferred for Sub-Template render

@daff is it possible to precompile EJS while development and force steal NOT to load separate ejs files that are defined in modules but present in precompiled file?

View Article

Re : CanJS works well with the Rails asset pipeline

This is an interesting technique that sort of works for me, except for a few (rather important) things:- server side EJS doesn't recognize canjs's EJS helpers, I am forced to declarewindow.list =...

View Article


Re : can.view Deferred for Sub-Template render

Yes, you should just be able to add the compile step as a batch command. If you add the resulting JS file to your production build it will cause any can.view request to look in the pre-compiled...

View Article

Re : can.view Deferred for Sub-Template render

I think Steal just makes a can.view request which will just return the renderer with the pre-compiled template if it is available. You might want to try that though.

View Article

Re : can.view Deferred for Sub-Template render

Thanks daff,I will try to exclude all *.ejs files from the app-merger and include the can-compiler result as either an --externs or a regular --js file to the Closure batch instead.All EJS templates...

View Article
Browsing all 3491 articles
Browse latest View live