ChaosPandion
ChaosPandion

Reputation: 78272

What are my options for HTML templating when not using a web server?

Rules

  1. One option per answer
  2. List language constraints
  3. A minimum of one pro and one con
  4. At least one URL resource.

If your feeling generous include a description or your own experience with it.

Upvotes: 2

Views: 225

Answers (5)

ChaosPandion
ChaosPandion

Reputation: 78272

XSLT

Language Agnostic

Pro:

  • Extremely versatile
  • Language Agnostic

Cons:

  • Learning curve
  • Variation across implementations
  • XML syntax can be verbose


W3C Specification

.NET XslCompiledTransform

Upvotes: 2

questzen
questzen

Reputation: 3287

Stringtemplate can be used as a generic code emitter. Written in Java

Upvotes: 0

Hank Gay
Hank Gay

Reputation: 71969

Velocity

Language: Java

Pro: It's flexible

Con: Not as popular as it once was.

This is another generic templating engine, this one written in Java. At one time, it was a popular alternative to JSP, although it has fallen off a bit since then.

Upvotes: 1

Hank Gay
Hank Gay

Reputation: 71969

Jinja

Language: Python 2.4+

Pro: It's flexible

Con: You need a C compiler for debugging

It's a generic templating engine written in Python. It's often used as an alternative to the Django templating engine by people who don't like the restrictive nature of the Django templating engine.

Upvotes: 2

Related Questions