dust.js Questions
4
Solved
Some javascript frameworks like Dust.js claim that they ALSO support server-side rendering (in addition to client side rendering) as well. Can someone explain how does this work? My understanding i...
Gasometer asked 23/4, 2013 at 15:33
3
Solved
How can i format numbers, currency or date values within a dust.js template?
Data:
{
today: 'Wed Apr 03 2013 10:23:34 GMT+0200 (CEST)'
}
Template:
<p>Today: {today} </p>
Like thi...
Bryner asked 3/4, 2013 at 8:27
4
I'm having trouble with a dust if condition. I have a partial that points to 2 different dust templates depending on the Country code
{>"receipt/merchantInfo/merchantInfo_{countryCode}"/}
I'm...
Otho asked 22/2, 2013 at 0:30
5
Solved
I am new to angularjs environment, I want to use angular using dust templates as the current application has dust templates but I could not find anything on how I can use my existing dust templates...
Query asked 6/8, 2014 at 4:57
3
Solved
I am trying to write an adapter for a client-side HTML/JS templating system to use dust.js under the hood. Unfortunately the API expects render operations to occur synchronously: the rendered outpu...
Ability asked 24/3, 2012 at 3:17
1
I had this urge to use dust.js templates as it provides a much better performance for UI rendering by caching the templates.
But in my current project we are using angularjs. It is even possible/s...
Riva asked 17/9, 2013 at 7:11
3
Solved
If I am using the Index helper Is it possible to make the count start at 1 rather than 0. Both:
{@idx}{.}{/idx}
and
{$idx}
are zero based.
Does anyone know a way to do this?
It would be per...
Hierodule asked 8/2, 2013 at 20:56
2
Solved
This is my first foray into client-side templating and I want to make sure I'm understanding it and using it correctly. After reading this LinkedIn engineering blog, I decided to go with dust.js ra...
Tricycle asked 25/1, 2014 at 21:4
4
Solved
I get this error when trying to set up inheritance in dust.js:
500 Error: ENOENT, open 'C:\Users\Gilbert\Documents\GitHub\maths4me\base.dust'
I have a file called index.html:
{>"base.dust"/}...
1
Solved
I am currently using the Backbone philosophy which involves dust.js for template style. Recently I came across AngularJS, which extends the HTML syntax with custom elements and attributes.
Cons of...
3
Solved
I've been looking all over for something that will let me precompile static websites using Grunt. It needs to have partials, so I can include things like a common header/footer across the pag...
3
The quick question: why won't express.js run with dust.js?
I know it's not officially supported, but dust.js even has issues with my node.js version.
Node won't even start due to require.path issue...
1
Solved
What exactly is the difference between {?} and {#}?
--
After a little test, listing all truthy/falsy values for {?}, and comparing them to {#}:
context:
{
values: [
// false
'',
"",
false,...
Kuth asked 12/8, 2013 at 10:16
2
Solved
Background
All the JS template engines recommend putting your template text inside script blocks like so:
<script id="peopleTemplate" type="text/template">
{#people}
<div class="person...
Brill asked 13/3, 2013 at 13:9
4
Solved
I have a webpage with dynamic content. Let's say it's a product page. When the user goes directly to example.com/product/123 I want to render my product template on the server and send html to the ...
Mesoblast asked 7/8, 2012 at 2:57
2
Solved
I work on a large Java based web application, it has been built up over the past 5 or so years - the UI needs an overhaul / to be largely re-written. We are investigating the available UI too...
Beanery asked 17/4, 2012 at 16:9
2
Solved
I get the idea of server and client side templating, but dust.js confuses me a little bit.
In order to use dust.js for client side templating, you need three steps:
complie the template
load the...
Slesvig asked 6/12, 2012 at 3:26
2
Solved
The documentation on dust is just awful, I've already perused everything I can possibly find and cannot figure out how this is supposed to work.
I'm having this problem with the supposed special v...
Haim asked 10/8, 2012 at 22:29
1
Solved
I'm using dust templates and one aspect of the design has been bugging me. This makes me wonder if I'm "doing it wrong" so I thought I would ask S.O. Is there a way to create multiple-level inherit...
Bibliotheca asked 4/9, 2012 at 17:28
2
I'm trying to load template from file system using node.js and can't find the way.
So far I have:
exports.index = function(req, res){
var compiled = dust.compile("Hello {name}!", "intro");
dust....
1
© 2022 - 2024 — McMap. All rights reserved.