templating Questions
2
So I have an ansible playbook that is using a Jinja2 template to create a log file. Everytime I run the playbook it is pulling in customer information from customers.yml and outputting the complete...
Presbyter asked 22/9, 2017 at 13:57
1
I have the following Shiny-app, organize the following way
-- base_app
|-- server.R
|-- ui.R
`-- www
For example, server.R contains this lines:
infile <- "foo.txt"
# do something with inf...
Wiring asked 21/7, 2017 at 6:25
4
Solved
I'm writing a command-line tool that will ultimately output an HTML report. The tool is written in Ruby. (I am not using Rails). I'm trying to keep the logic of the application in one set of files,...
Mong asked 19/4, 2012 at 20:16
2
I have been cracking my head over this, I am trying to render an EJS file and save the result as an HTML, the saving part seems to be working but I can't get the full hand of how to return the data...
Irrupt asked 11/8, 2016 at 8:9
2
How do I conditionally render a <ui:define>?
The data in the template depends on a required <f:viewParam>.
But if an invalid view parameter is provided, then the <ui:define> sho...
Fitzhugh asked 3/12, 2012 at 2:10
11
Solved
Anyone knows how to concatenate strings in twig? I want to do something like:
{{ concat('http://', app.request.host) }}
Woolpack asked 9/10, 2011 at 14:37
1
Solved
I want to render .html.ep templates using Mojolicious rendering engine in a standalone script which sends e-mails and is run from cron:
#!/usr/bin/perl
use feature ':5.10';
use Mojo::Base -strict...
Joella asked 8/2, 2017 at 17:49
1
Solved
I cannot seem to find detailed documentation on conditionals for Pug/Jade contemplating language to use && in a if statement.
I am try to achieve this:
if(true && string == 'save...
Musso asked 7/10, 2016 at 8:14
1
Solved
So I'm using Nunjucks as the templating engine in my Node.js application.
I have an object we'll call var which may or may not be empty.
When it is empty, if I do
{{ var | dump }} Nunjucks proper...
Faye asked 19/6, 2016 at 7:48
2
Solved
In the Sightly templating language, for Adobe AEM6 (CQ), how do I add an attribute to an element only if a condition is true, without duplicating lots of code/logic?
e.g.
<ul data-sly-list="${...
April asked 3/7, 2014 at 9:54
1
I am trying to develop kind of dropdown list with metrics and accordingly to selected metric specific panel supposed to appear on dashboard. And vice versa if metric unselected, panel should be hid...
Amberjack asked 31/8, 2016 at 18:54
3
Solved
My controller grabs people from the server:
$scope.people = [person1, person2, person3, person4, person5,...]
My template needs to display three people per line. For example if it was a table:
...
Chintzy asked 2/9, 2013 at 2:24
2
Solved
Does Xamarin.Forms have a concept of includes?
I'm creating an app that has a shared header across all pages. Is there a way to create the header once and include it on all pages? Better yet, is ...
Valverde asked 24/3, 2016 at 15:8
3
I have found quite a few discussions on this but I can't seem to make it work. I define the variable in php this way
$theme_name = 'layout1';
So I tried the following to get 'layout1' to show in ...
Romola asked 2/2, 2016 at 18:41
2
Solved
I'm building a set of T4 templates that gather their data from an XML file. Is there any way to force Visual Studio to regenerate the templates when the XML file is changed?
Presently, the develop...
Pender asked 9/11, 2010 at 21:4
1
Does Node/Express have a JSON templating engine like RABL (https://github.com/nesquena/rabl) or JBuilder? (http://railscasts.com/episodes/320-jbuilder?view=asciicast). I don't mean an HTML templati...
Castellated asked 7/5, 2015 at 17:40
3
Summary
I am using Express + Jade for my web application, and I'm struggling with rendering partial views for my AJAX navigation.
I kind of have two different questions, but they are totally link...
Hyperthermia asked 5/8, 2014 at 8:24
1
Solved
According to the FreeMarker include statement docs, you can make header- and footer- aware templates like so:
<#include "/header.ftl">
<!-- Content of my this page -->
<#include "/f...
Crusade asked 20/11, 2015 at 17:15
1
Solved
In jade the pipe symbol (|) is used for plain text output. What if I want to write it in page? How can I escape it?
Kumquat asked 29/10, 2015 at 14:2
1
Solved
I'm quite new to nunjucks and from what I have read this is not possible, but I was wondering if anyone had come up with a way of doing this.
I am basically looking to perform a for loop in a nunj...
Prue asked 21/9, 2015 at 17:34
1
I have file master.blade.php, which contains @yield('mainsection'). Then I have another file, with:
@extends('layouts.master')
@section('mainection')
test1
@yield('othersection')
@stop
@sectio...
Knitted asked 13/2, 2014 at 14:15
2
Solved
How would you structure Freemarker (or an alternative) as a templating code generator into a Maven project? I'm pretty new to Maven and would appreciate some help.
I want to generate some code fro...
Ruching asked 13/10, 2010 at 14:59
1
Solved
I am writing a simple custom directive in Laravel. Whenever I make some changes in the code of custom directive, its not reflected in the view until I
Comment the directive in view.
Reload the pa...
Guardhouse asked 23/7, 2015 at 11:49
2
I'm having to define template helpers everywhere that simply test the equality of a document property with a constant so I can do something like this in my template:
{{#if fruitIsPineapple}}...{{...
Timikatiming asked 28/3, 2014 at 6:15
1
Solved
I have a javascript object in my jade view like this :
element = {
name: 'createdAt',
type: 'text',
attrs: {
class: 'date',
type: 'text',
placeholder: 'Created at'
}
}
I would like genera...
Tisbee asked 6/11, 2013 at 11:13
© 2022 - 2024 — McMap. All rights reserved.