Skip to content

Instantly share code, notes, and snippets.

@Wolfr
Created August 13, 2012 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wolfr/3342040 to your computer and use it in GitHub Desktop.
Save Wolfr/3342040 to your computer and use it in GitHub Desktop.
<php require('file.html')>
<php require('file.html')>
I'm looking for a system that generates HTML templates from
HTML with includes.
I'm looking for a way to use includes while still able to send
a HTML/CSS/JS package off to a client that can be opened
through clicking .html files.
The system doesn't have to be PHP based, it can be a shell
script thats loops through files ("generate html") or
something else.
I'm looking for something as simple as possible that doesn't
force me into a directory structure (one level of templates,
just /css /images/ folders)
@recyclerobot
Copy link

using apache ant you can "generate" a list to include in your project,
but if you want the real deal; get your hands dirty on backbone.js, it uses the insanely handy underscore template engine,
other html/js template engines include handlebars.js or moustache.js

@icidasset
Copy link

This might not be the exact thing you're looking for, but it's close.

http://middlemanapp.com/
http://middlemanapp.com/templates/templates-layouts-partials/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment