Michael Bayne
b38f17ea0f
[maven-release-plugin] prepare release jmustache-1.2
2011-04-13 16:18:35 -07:00
Michael Bayne
14e42bc984
Toned down caveat.
2011-04-13 15:44:13 -07:00
Michael Bayne
6b1551a1c9
Actually implemented delimiter change. Tidied things upalong the way.
2011-04-13 15:42:28 -07:00
Michael Bayne
f34539850a
Added blurb on standards mode.
2011-04-13 15:00:57 -07:00
Michael Bayne
9d8754b130
Fixed {{.}} doc typo.
2011-04-13 14:55:25 -07:00
Michael Bayne
03c02fba96
Formatting tweak.
2011-04-13 14:54:05 -07:00
Michael Bayne
aa5a5bf3c4
Clarify partials documentation a touch.
2011-04-13 14:53:34 -07:00
Michael Bayne
b1262c8edb
Added documentation for {{.}}.
2011-04-13 14:50:18 -07:00
Michael Bayne
ab0e1fdda4
Let's make Partials a subsection of Usage rather than a full top-level section.
2011-04-13 14:43:48 -07:00
Michael Bayne
5b81a46710
Added basic documentation on how to use partials support.
2011-04-13 14:43:17 -07:00
Michael Bayne
a0bc4dc3b6
Test that names are being processed in partials; fixed exception on attempt to
...
use partials when unconfigured; moved partials tests down into a more sensible
location among the tests.
2011-04-13 14:42:30 -07:00
Michael Bayne
419a8b887c
Fixed typo; restrict exception handling to just the loading of a partial
...
template; pass runtime exceptions through unwrapped.
2011-04-13 14:41:49 -07:00
Michael Bayne
0959ccd0d9
More tidying.
2011-04-13 14:25:41 -07:00
Michael Bayne
ce389bd293
Cleaned up contributed template loading support. Moved MustacheTemplateLoader
...
into inner interface Mustache.TemplateLoader, eliminated top-level
UnsupportedTemplateLoader. Eliminated static configuration of active template
loader in favor of per-Compiler configured template loader, which is how all
other configuration is handled.More complex tests are needed, but will have to
wait until I'm less sleep deprived.
2011-04-13 11:49:59 -07:00
Michael Bayne
e8641ba4fa
We have interned strings here, so we can use reference equality to determine
...
whether we're seeing {{.}} or not. Also reinstated treatment of ".foo" as a
compound key. I'm not 100% sure that makes more sense than treating ".foo" as a
simple key, but I'd rather change less behavior than more when making the {{.}}
fix.
2011-04-13 11:38:26 -07:00
Sean Scanlon
b3f5e1e960
tighten up fix for {{.}}
...
realizing previous commit would treat {{.foo}} the same as {{.}}
2011-03-27 16:18:17 -07:00
Sean Scanlon
095c6f9a59
fix for using {{.}} in non-standards mode
...
in non-standards mode (which is the default), {{.}} would be treated as a compound key, resulting in key not found exceptions.
2011-03-27 16:07:20 -07:00
Sean Scanlon
5fc751219e
Add template loader hook for partials {{>template}} support.
...
This is implemented so that by default, the library does not support template loading (which it already does not)
but instead of treating partial calls as a context lookup for a ">key", an exception is thrown.
2011-03-27 15:53:04 -07:00
Michael Bayne
76f86ea665
[maven-release-plugin] prepare for next development iteration
2011-03-01 11:35:16 -08:00
Michael Bayne
13ac4f9b87
[maven-release-plugin] prepare release jmustache-1.1
2011-03-01 11:35:09 -08:00
Michael Bayne
4a1a125f87
Maybe these URLs will appease my fickle Maven mistress.
2011-03-01 11:34:20 -08:00
Michael Bayne
c94782fd9b
My release was borked, need to start over. Yay!
2011-03-01 11:31:55 -08:00
Michael Bayne
1d0f1b7a65
Prepare for 1.2-SNAPSHOT development. Go back to old GIT URL. I was apparently
...
using an ancient version of Maven that was not very GIT friendly.
2011-03-01 11:30:22 -08:00
Michael Bayne
74c19b2e5f
[maven-release-plugin] prepare release jmustache-1.1
2011-03-01 11:28:44 -08:00
Michael Bayne
d1d096ad84
Now I want some line wrapping.
2011-03-01 11:17:01 -08:00
Michael Bayne
6ca5e463da
We'll need a git: in there to let Maven know what's going on.
2011-03-01 11:16:34 -08:00
Michael Bayne
7ed35d55b5
Maybe Maven will like the https GIT URL better?
2011-03-01 11:15:55 -08:00
Michael Bayne
4c2a118add
Went back to a happy medium of density.
2011-02-28 20:30:23 -08:00
Michael Bayne
267f144f41
Eased up on the density in the examples a bit.
2011-02-28 20:27:12 -08:00
Michael Bayne
40b5a2b2c8
Corrected another error in the examples. Sheesh.
2011-02-28 20:24:14 -08:00
Michael Bayne
cd4db4293e
Added support for the triple mustache! {{{foo}}} which means "don't escape HTML
...
in the replacement for this tag." This is already supported via {{&foo}} as
well, but we like to be thorough.
Also generate MustacheParseException when parsing (a subclass of
MustacheException) mostly for convenience in testing.
2011-02-28 20:15:45 -08:00
Michael Bayne
04ea4b0cc0
Fixed typo in example.
2011-02-28 17:20:31 -08:00
Michael Bayne
f4cfa40c2b
Added a "standards mode" based on patches from mrdon. In standards mode, we do
...
not search parent contexts for name bindings, nor do we support compound keys.
Also added support for {{.}} which has the same semantics as {{this}}. I must
have missed this when reading the Mustache spec.
2011-02-28 11:52:40 -08:00
Michael Bayne
c271e7df12
I need to eradicate the word simply from my vocabulary.
2010-11-02 14:29:31 -07:00
Michael Bayne
0c3b9b9337
Make it more obvious how to download/add JMustache to your project.
2010-11-02 14:28:34 -07:00
Michael Bayne
2aa990d239
Fixed link to prebuilt jar.
2010-11-02 14:26:59 -07:00
Michael Bayne
773e1c5c6e
Bah, let's just have the copyright in the LICENSE file. If that doesn't hold up
...
in a court of law, oh well. My sense of aesthetics trumps all!
2010-11-02 14:19:33 -07:00
Michael Bayne
84691b7ac3
Let's have a license and a proper source header. (Thanks Dave!)
2010-11-02 14:18:16 -07:00
Michael Bayne
50cd98346b
Missed a spot in Markdown conversion.
2010-10-24 09:51:15 -07:00
Michael Bayne
9282db1db0
Formatting tweaks.
2010-10-24 09:49:27 -07:00
Michael Bayne
97c106defd
Update POM with Github URLs.
2010-10-24 09:47:49 -07:00
Michael Bayne
c6eab5f1c5
Reference MustacheTest.java at its new location.
2010-10-24 09:41:19 -07:00
Michael Bayne
24d355bd03
A README with explanations.
2010-10-24 09:40:09 -07:00
Michael Bayne
7ec57412fa
A patch from Charlie to provide line numbers when reporting variable related
...
errors during execution.
2010-10-23 16:35:38 +00:00
Michael Bayne
4f5b3d772d
[maven-release-plugin] prepare for next development iteration
2010-10-22 06:07:52 +00:00
Michael Bayne
e3dcf153b6
[maven-release-plugin] prepare release jmustache-1.0
2010-10-22 06:07:19 +00:00
Michael Bayne
00113a5a36
Added -index special variable.
2010-10-22 05:29:31 +00:00
Michael Bayne
0b9b01dab6
Fixed some bugs with newline skipping. Improved error handling when a tag is
...
not closed properly and another tag follows it on the same line. Added support
for -first and -last special variables. Fixed problem with resolving outermost
component of a compound key in parent contexts.
2010-10-22 05:02:09 +00:00
Michael Bayne
5932123d79
Added support for nesting contexts, which allows us to resolve variables in
...
parent contexts if they're not available in our current context.
2010-10-22 01:06:06 +00:00
Michael Bayne
eb225b0b48
Added skipping of newlines immediately following section open and close tags.
2010-10-21 23:19:10 +00:00