Questions tagged [templating]

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

A templating system is composed of:

  • A template engine: the primary processing element of the system;
  • Content resource: any of various kinds of input data streams, such as from a relational database, XML files, JSON, LDAP directory, and other kinds of local or networked data;
  • Template resource: web templates specified according to a template language; The template and content resources are processed and combined by the template engine to mass-produce web documents. For purposes of this article, web documents include any of various output formats for transmission over the web via HTTP, or another internet protocol.
958 questions
0
votes
1 answer

How to setup dynamic URL such as www.abc.com/photos/august/ in Google App Engine?

For example, I have the following files in local folders: user/website/abc/photos/2012/august.html user/website/abc/photos/2012/september.html I want to upload these two html pages to GAE and setup the URL as: (Let's assume that www.abc.com is the…
hitheredude
  • 929
  • 5
  • 18
  • 32
0
votes
5 answers

Preventing a security breach

I am creating a website where you "post", and the form content is saved in a MySql database, and upon loading the page, is retrieved, similar to facebook. I construct all the posts and insert raw html into a template. The thing is, as I was…
Wiz
  • 4,595
  • 9
  • 34
  • 51
0
votes
2 answers

Client Side vs Server Side templating

I was wondering what the best option would be for doing ajax calls to update a list of usernames. I can either a. do a ajax call and get the user object back and build the html and append it into a div build_html = function(obj) { html =…
mirugai
  • 175
  • 4
  • 12
0
votes
1 answer

Where is the documentation for Symfony 1.4 Templating Component?

I'm using an old component of Symfony 1.4 called Templating. I'm searching the documentation (API reference). I search, and found an example of Component Templating. This appears to be the documentation, but was REDIRECT to new 2.0 version (result…
Jose Nobile
  • 3,243
  • 4
  • 23
  • 30
0
votes
1 answer

Add parameter in symfony2 twig asset function

I have been wondering if it is possible to add a parameter for the asset twig function like this #config.yml ... framework: templating: parameters: key: value OR twig: parameters: key: value ... And in the twig file use…
Particule42
  • 25
  • 1
  • 6
0
votes
1 answer

Calling the correct overloaded function from a container class

This is something that's been bugging me for a while now. So let's say you have your baseClass and derivedClass. You also have a container object of baseClass pointers that holds pointers to all the objects you're managing. The problem comes when…
RayBatts
  • 255
  • 1
  • 9
0
votes
1 answer

Client-side vs server-side templating for large enterprise applications

What makes most sense for large enterprise applications involving several jsps and many transactions (like a commercial banking application or a healthcare application with huge amounts of data) w.r.t templating? Is it just a matter of personal…
Ramya
  • 289
  • 6
  • 17
0
votes
1 answer

How podscms choose template pages to use and how to choose among more of them

I'm using podscms for creating a database site. I would like to create two different wp templates to use for detail and list Pods pages so that i can load some specific scripts and code. But i really haven't understand in which way Pods choose the…
Bakaburg
  • 3,165
  • 4
  • 32
  • 64
0
votes
1 answer

Incorrectly calculating dialog box position because of dynamic image loading?

I'm working on a gallery type application - one template puts together a popup dialog for a larger view of thumbnail images when clicked. The server path to the image is included as a template variable. Gallery.Templates.Popup = "\
rakitin
  • 1,943
  • 6
  • 25
  • 51
0
votes
1 answer

Backbone.js and underscore.js are creating messy html

I am using the normal way of creating html bits by combining backbone.js and underscore.js. This is an example from what I use _.template($('#html-container').html(), this.model.toJSON()); And I append this where I need it. The model in this case…
Saif Bechan
  • 16,551
  • 23
  • 83
  • 125
0
votes
2 answers

How do I troubleshoot mustache blocks?

I'm trying to use handlebars in my project, but am running into trouble getting it to output each object's attributes. Data people: [{"name":"Moe"}, {"name":"Larry"}, {"name":"Curly"}] Template {{#people}} Name: {{name}}…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
0
votes
0 answers

Extjs 4 basic templating

I want to make a custom component extending Ext.Panel, that component is based on an XTemplate and I want to substitute certain elements in an template with Ext.Element, but I cannot find any documentation on how you do that. My example code is…
dfilkovi
  • 3,051
  • 7
  • 39
  • 51
-1
votes
1 answer

YAML templating system - how based on env variable determine what the variable contains

I want that by env variable (string) the varb_letter will get different data from my metadata. here is what I tried to do. Can u assist? thanks!!! varb_letter: (( env("LANDSCAPE") == 'a' ? asjson(.metadata.a) : env("LANDSCAPE") == 'b' ?…
Ran Yanay
  • 3
  • 2
-1
votes
1 answer

PHP Templating if statement for html option value

Suppose you have the following html select statement:

I want to contact