Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Using .mustache view with query string?

$
0
0
I need to use views with querystring for language so it can be cached properly:

code:
this.element.html(
this.view('myview.mustache?lang=en', { myvar : 'value' })
);

but it appends .ejs to the view and obviously fails:
myview.mustache?lang=en.ejs

i figured using "myview.mustache?lang=en&f=.mustache" does the trick, but it is so ugly it makes my eyes bleed.

Is there a way to not append ejs extension without monkeypatching the core?


Viewing all articles
Browse latest Browse all 3491

Trending Articles