Top "Templating" questions

Templating systems are generally composed of a Template Engine, a Content Resource and a Template Resource.

How to concatenate strings in twig

Anyone knows how to concatenate strings in twig? I want to do something like: {{ concat('http://', app.request.host) }}

syntax twig string-concatenation templating
How to replace ${} placeholders in a text file?

I want to pipe the output of a "template" file into MySQL, the file having variables like ${dbName} interspersed. What …

bash command-line text-processing templating
Passing variables through handlebars partial

I'm currently dealing with handlebars.js in an express.js application. To keep things modular, I split all my templates …

javascript html handlebars.js templating
How to include a sub-view in Blade templates?

I am trying to set up a site using laravel, but I'm really having trouble with basic things that the …

laravel blade templating
Bash Templating: How to build configuration files from templates with Bash?

I'm writing a script to automate creating configuration files for Apache and PHP for my own webserver. I don't want …

bash templates templating
How to echo a default value if value not set blade

I would like to know what would be the best way to display a default value if the given value …

laravel laravel-4 laravel-5 blade templating
How to reference CSS / JS / image resource in Facelets template?

I've done tutorial about Facelets templating. Now I've tried to create a page that isn't in same directory as the …

jsf resources jsf-2 facelets templating
conditional on last item in array using handlebars.js template

I am leveraging handlebars.js for my templating engine and am looking to make a conditional segment display only if …

javascript arrays helpers handlebars.js templating
What's a good way of doing string templating in .NET?

I need to send email notifications to users and I need to allow the admin to provide a template for …

c# .net string templating
How to apply style trigger to datatemplate in WPF

I've got the following.. <ComboBox Grid.Row="2" Grid.Column="2" Grid.RowSpan="2" ItemsSource="{Binding ShipperAddresses}" Text="{Binding ShipperAddress}" Margin="85,2,0,2"> &…

wpf triggers datatemplate templating