]> Devi Nivas Git - chevron.git/log
chevron.git
11 years agoFixed "no escape?" bug
noah morrison [Sat, 1 Nov 2014 17:23:51 +0000 (13:23 -0400)]
Fixed "no escape?" bug

Triple brace tags were yielding "no escape?" instead of "no escape".

11 years agoDRY'd the code some
noah morrison [Sat, 1 Nov 2014 16:50:26 +0000 (12:50 -0400)]
DRY'd the code some

Added a function to grab literals and tag keys,
since the code was very similar and in two places.

Also the grab_literal function is probably more efficent,
as it doesn't peek so much.

11 years agoAdded some documentation
noah morrison [Sat, 1 Nov 2014 16:49:53 +0000 (12:49 -0400)]
Added some documentation

Documented the tokenize function.

11 years agoUpdated README
noah morrison [Fri, 31 Oct 2014 20:42:03 +0000 (16:42 -0400)]
Updated README

11 years agoChanged tokenize to use file like objects
noah morrison [Fri, 31 Oct 2014 20:36:57 +0000 (16:36 -0400)]
Changed tokenize to use file like objects

tokenize now takes a file object (or file like object).
If tokenize is given a string it turns it into a file like object.

Also renamed look to peek.

11 years agoChanged sys import to just import argv
noah morrison [Fri, 31 Oct 2014 19:38:23 +0000 (15:38 -0400)]
Changed sys import to just import argv

11 years agoRemoved unnecessary custome exception
noah morrison [Fri, 31 Oct 2014 19:06:52 +0000 (15:06 -0400)]
Removed unnecessary custome exception

The custome exception EOF was not needed,
there is a built-in one called EOFError.

11 years agoAdded section detection
noah morrison [Fri, 31 Oct 2014 19:00:03 +0000 (15:00 -0400)]
Added section detection

Unclosed sections now raise an error

11 years agoFixed README.md syntax
noah morrison [Fri, 31 Oct 2014 18:39:31 +0000 (14:39 -0400)]
Fixed README.md syntax

11 years agoAdded nicer file targeting
noah morrison [Fri, 31 Oct 2014 18:35:43 +0000 (14:35 -0400)]
Added nicer file targeting

You can now specify the data and template files from the command line.
Also added a data.json file, even though it is currently unused.

11 years agoFixed the mustache file
noah morrison [Thu, 30 Oct 2014 22:06:35 +0000 (18:06 -0400)]
Fixed the mustache file

test.mustache was invalid, I forgot to close a tag and used html inside
the non html-escaped tags (instead of a json variable name).

11 years agoinitial commit
noah morrison [Thu, 30 Oct 2014 02:43:15 +0000 (22:43 -0400)]
initial commit