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
19
votes
22 answers

Creating PDF Invoices - Are there any templating solutions?

Our company is looking to integrate invoices into a new system we are developing. We require a solution to create a layout of the invoice and then convert to pdf. We have considered just laying out the invoice in html/css then converting to pdf. We…
smashedmercury
  • 901
  • 2
  • 9
  • 8
18
votes
5 answers

Backbone.js: nesting views through templating

Is it technically possible to nest views, using templating, something like that: <%= new PhotoCollectionView({model:new PhotoCollection(model.similarPhotos)}).render().el) %> I can put all the stuff in the render method as well, but templating…
user802232
  • 2,541
  • 7
  • 34
  • 40
18
votes
3 answers

Why don't I just build the whole web app in Javascript and Javascript HTML Templates?

I'm getting to the point on an app where I need to start caching things, and it got me thinking... In some parts of the app, I render table rows (jqGrid, slickgrid, etc.) or fancy div rows (like in the New Twitter) by grabbing pure JSON and running…
Lance
  • 75,200
  • 93
  • 289
  • 503
18
votes
5 answers