Elf M. Sternberg
ab9d81a323
Updating the package.json file.
2013-11-29 17:42:51 -08:00
Elf M. Sternberg
578150e389
Wrapped template descender in a recursion check. Fixed global leak in valid_block_type() check. Updated Readme to document if/when differences.
2013-06-12 09:51:00 -07:00
Elf M. Sternberg
8d949ce6f0
Removing unneeded 'util' require. Updating package manager.
2013-06-12 09:24:39 -07:00
Elf M. Sternberg
74a99da2ef
Updated for the web.
2013-06-11 13:13:16 -07:00
Elf M. Sternberg
63ebf50ccb
Support for 'each' (an early synonym for 'many') removed.
2013-06-11 09:24:41 -07:00
Elf M. Sternberg
98704f69ff
Removed unneeded debugging line.
2013-06-11 09:23:43 -07:00
Elf M. Sternberg
2ff8172f33
Now have a 'when' (when the variable is true in *any* recent context) and 'if' (if the variable is true only in the *most* recent context). Added to the lexer a handler to determine if the block name is valid. This duplicates code from the parser, but it allows the lexer to tell the user when he's being dumb.
2013-06-11 09:05:32 -07:00
Elf M. Sternberg
f65548f1c4
Needed if I'm ever going to make this NPM-able.
2013-06-10 15:55:27 -07:00
Elf M. Sternberg
669b9d1ca8
Updated to expose an API that I *hope* integrates with ExpressJS.
2013-06-10 15:54:42 -07:00
Elf M. Sternberg
047b64a60f
Updated version number.
2013-06-09 08:14:33 -07:00
Elf M. Sternberg
d3e4e18184
Templates work. Good, recursion may yet be recoverable.
2013-06-07 19:34:44 -07:00
Elf M. Sternberg
d10767f0d0
Added script to add node_modules/.bin path to PATH; updated Makefile to build correctly.
2013-06-07 16:11:43 -07:00
Elf M. Sternberg
fac48b727a
Put tests into a different file.
2013-04-30 22:08:58 -07:00
Elf M. Sternberg
033c3f196d
Parsimonious testing.
2013-04-28 15:23:35 -07:00
Elf M. Sternberg
8c96acf0f0
Passing tests.
2013-04-27 13:53:31 -07:00
Elf M. Sternberg
7d7bf35d63
Stripped the parser down to its essentials. Will now provide simple
...
rendering tools for the envisioned basics: IF, LOOP, CONTEXT,
TEMPLATE, VARIABLE/METHOD, and TEXT.
The idea will ultimately be a two-step: a second parser for the
language we'll be parsing(!), so that you'll be able to say:
document
= if:story if:series if:page
And be able to say with confidence that the document being read conforms
to the language.
2013-04-26 09:23:27 -07:00
Elf M. Sternberg
da5506f1df
Holy cow. I think I have subtemplates and renderers working.
2013-04-17 22:37:49 -07:00
Elf M. Sternberg
7efcbb6b40
Added check for maximum nesting depth.
2013-04-17 22:05:15 -07:00
Elf M. Sternberg
dd332e3354
Typo fixed in documentation.
2013-04-17 13:20:35 -07:00
Elf M. Sternberg
f8e6eb7003
Broke large embeddeds out into the scoped preface, hopefully will make future language specificity easier.
2013-04-17 12:46:37 -07:00
Elf M. Sternberg
80c3c6f834
Not using grunt; don't need these.
2013-04-17 10:18:50 -07:00
Elf M. Sternberg
b604926aee
Fixed README copyright notice.
2013-04-17 10:17:45 -07:00
Elf M. Sternberg
95a0873157
Fixed README whitespace issue.
2013-04-17 10:16:46 -07:00
Elf M. Sternberg
a28a1f5d36
Passes the first tests.
2013-04-17 10:10:06 -07:00
Elf M. Sternberg
6e00e56e84
Working toward a dynamically defined language for the parse structure.
2013-04-01 10:55:25 -07:00
Elf M. Sternberg
70149bcf1e
Renamed the tumbler and parser files so that you import "lib/tumble"
2013-03-30 20:45:12 -07:00
Elf M. Sternberg
1806eccf20
Passing template text and variable substitution methods, at least to one level down. Not working: (1) blocks, (2) descending GET
2013-03-30 20:30:58 -07:00
Elf M. Sternberg
41239a0b4c
Basic tests now failing. That's a good thing.
2013-03-06 10:56:04 -08:00
Ken Elf Mathieu Sternberg
92680574f3
Basic tests.
2013-03-06 09:57:12 -08:00
Ken Elf Mathieu Sternberg
04de588943
Initial check-in.
2013-03-05 15:25:53 -08:00