Questions tagged [template-variables]

Template variables consist of any of various conventions for declaring, initializing, composing or evaluating variables and expressions within a template engine.

Overview

Template variables consist of any of various conventions for declaring, initializing, composing or evaluating variables and expressions with a

See also

55 questions
0
votes
1 answer

Template Alias, Variable Template, and auto type deduction failing to deduce template argument

While working on my class declaration I'm having some confusion on how to use alias templates and template variables within in a non class template while trying to use auto type deduction. Signal.h #ifndef SIGNAL_H #define SIGNAL_H #include…
Francis Cugler
  • 7,788
  • 2
  • 28
  • 59
0
votes
1 answer

Angular5: Dependant dropdown using template variable

In one of my component I'm subscribing to an observable. The underlying JSON object I'm subscribing to has many levels of nesting. How can I make several dropdown select dependant on the previous selection? I'm using template variables to mark the…
baouss
  • 1,312
  • 1
  • 22
  • 52
0
votes
1 answer

ModX getResources &tvFilters not working

I have output from getResourses that I need to sort out by template variable value, but filter is showing resources that have only one value. For example, this code is showing resources that have only Manhattan TV value. Template variable input type…
0
votes
2 answers

Parse Custom Variables Through Templates in Golang

Is it possible for me to set a variable in a template file {{$title := "Login"}} then parse it through to another file included using {{template "header" .}}? An example of what I'm attempting: header.tmpl {{define…
Ari Seyhun
  • 11,506
  • 16
  • 62
  • 109
0
votes
1 answer

MODX - Access TV's of resource fetched from a ResourceList and display with getImageList

I'm trying to output template variables from resources input into a MIGX template variable, which references a template variable with an input type of 'Resource List'. Is this possible? I've got a template variable(TV) in MODX which has an input…
Lee Brindley
  • 6,242
  • 5
  • 41
  • 62
0
votes
1 answer

Golang Template - Use Template Variable As Global Variable From Within Range Loop

I will try to make this as simple as possible. I have two variables in Golang which are parsed to the template file. Here is my Golang code which declares the variables: for _, issue := range issues { issueIDStr := strconv.Itoa(*issue.ID) …
Ari Seyhun
  • 11,506
  • 16
  • 62
  • 109
0
votes
3 answers

MODX - Template Variable for Particular Page

I have one MainTemplate shared with pages like : home,about-us,contact-us I also have template variable to control all pages' : meta description, og title, og image, og desc I created a Template Variable Home Page Banner link to my MainTemplate to…
Mavichow
  • 1,213
  • 17
  • 41
0
votes
1 answer

When creating a nav in SilverStripe, what is the number after $Menu?

The below template code from one of the tutorials on the official SilverStripe website ("How to create a navigation menu") includes the template variable $Menu(1) What does the (1) mean? What happens if it gets changed to something else?
    <%…
Highly Irregular
  • 38,000
  • 12
  • 52
  • 70
-1
votes
1 answer

static template variable in template class

I want to define the static template variable of a templated class. But I can't get the correct syntax here: template < typename T> class X { public: T i; X(T _i): i{_i}{} operator T(){ return i; } }; template <…
Klaus
  • 24,205
  • 7
  • 58
  • 113
-2
votes
1 answer

How to create a template variable like that of Angular 2?

I want to create a template variable in Xamarin Forms like the ones we can create in Angular. For example like this
Koushik Sarkar
  • 480
  • 2
  • 6
  • 18
1 2 3
4