templating-engine Questions

4

Solved

I want to be able to output the current loop iteration to my template. According to the docs, there is a loop.counter variable that I am trying to use: <ul> {% for user in userlist %} <li...
Ardoin asked 27/8, 2012 at 16:2

9

Major differences I've seen are: Handlebars adds #if, #unless, #with, and #each Handlebars adds helpers Handlebars templates are compiled (Mustache can be too) Handlebars supports paths Allows us...

8

Solved

So I've seen this post on JavaScript Micro-Templating by John Resig and I have a need for a micro-templating engine like this. But he saids in the post that he'll keep a more-refined version in hi...
Sublingual asked 28/9, 2009 at 3:24

4

I am using go templates to create yaml definitions for kubernetes. I am trying to nest templates but run into issues where I can't re-use a definition simply because the indention is wrong when inc...
Ornate asked 6/5, 2017 at 15:7

2

Recently I installed Twig2.0 via Composer for PHP7.2 and when running the code I'm getting these errors, ( ! ) Fatal error: Uncaught Error: Class 'Twig_Autoloader' not found in C:\wamp64\www\php-t...
Caniff asked 26/8, 2019 at 18:52

15

Solved

I am looking for a .net templating engine - something simple, lightweight, stable with not too many dependencies. All I need it for at the moment is creating templated plain text and html ema...
Omnidirectional asked 4/12, 2008 at 10:6

2

Solved

I can create a Twig extension for my project like this class Functions extends Twig_Extension{ public function getName(){return 'foobar';} public function getFunctions() { return array( 'lore...
Intussusception asked 18/12, 2013 at 15:32

2

Solved

This may come from a lack of experience on the various sections of the MEAN stack, but from the various boilerplates I've seen (mean.io, hackathon-starter, etc.) in the app.js code, there is always...
Romberg asked 22/2, 2014 at 18:52

3

Solved

I am working with twitter's typeahead.js and I was wondering if it was possible to modify hogan.js to use something other than {{}}? I am looking at the minified code now and I have no idea what to...

2

Solved

Is it possible to pass a JavaScript object/hash into a Handlebars helper call? I'd like to do something like this: <label>Label here</label> {{#textField {'id':'text_field_1', 'class':...
Stancil asked 6/8, 2013 at 16:12

3

Solved

I am looking at some good templating systems to be used alongwith an MVC framework like Backbone.js I am aware of one such system (jQuery Templating). However, the same has been discontinued for s...

1

Solved

I'm looking for a templating engine. What are the important factors to consider when choosing among HAML, SASS/Compass and ERB?
Ethanethane asked 3/5, 2009 at 15:5
1

© 2022 - 2024 — McMap. All rights reserved.