Expanded behavior for tilt #128

Closed
wants to merge 15 commits into
from

2 participants

@thinkerbot

I propose an extension to the tilt exe, as outlined in the usage information. I think this will make tilt much more capable because you could render a whole series of templates from an input dir to an output dir.

I plan on building this behavior somewhere. If you like this proposal, then I'll write it into tilt itself. Otherwise, I'll make a separate fork or project.

Thanks! Appreciate the great library!

Use Case

mkdir -p inputs outputs
echo "obj: milk" > attributes.yml
echo "Got <%= obj %>" > inputs/file.txt.erb
tilt --attrs attributes.yml --input-dir inputs --output-dir outputs --files inputs/*

The result would be 'outputs/file.txt' with content 'Got milk'.

@thinkerbot

Ok, so the extension is done. An example using it to build a static site is here: https://gist.github.com/1734959

@judofyr
Collaborator

I think a separate project is a better approach.

@judofyr judofyr closed this May 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment