7701880092
Update download links to latest release version (1.5).
Michael Bayne
2011-11-22 11:43:55 -08:00
718639127e
Added comments and squeezed into 100 columns.
Michael Bayne
2011-11-22 11:40:09 -08:00
84b8f08634
Merge pull request #11 from jlewallen/parent-context
Michael Bayne
2011-11-22 11:37:31 -08:00
1a06a0233a
Add a Template.execute that takes a parent context.
Jacob Lewallen
2011-11-22 11:20:59 -08:00
751123c067
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2011-11-13 08:53:24 -08:00
ab3d6206e0
[maven-release-plugin] prepare release jmustache-1.5
Michael Bayne
2011-11-13 08:53:17 -08:00
d51cd7e08a
Reader and Writer are abstract classes. GWT tests work now. Yay!
Michael Bayne
2011-10-29 15:50:41 -07:00
407d999836
Further work on making JMustache work in GWT.
Michael Bayne
2011-10-29 15:31:27 -07:00
f9319ce911
Added a header.
Michael Bayne
2011-10-29 15:31:03 -07:00
f6c6f4916c
Pass the context instance itself instead of its class.
Michael Bayne
2011-10-29 15:29:18 -07:00
69826a707e
Nixed limitations list. One was obsolete and the other is in the README.
Michael Bayne
2011-10-29 14:45:24 -07:00
a5e7c2ebb8
Switch CompoundSegment to BlockSegment. Avoids overloading use of the term compound, which I use for compound variables.
Michael Bayne
2011-10-29 14:41:27 -07:00
adf116992c
Modified compound variables to honor null/default configuration. Closes#10.
Michael Bayne
2011-10-29 14:38:56 -07:00
37884af44d
Fixed thinko.
Michael Bayne
2011-10-29 13:19:16 -07:00
66ba7c8cf8
Added additional information about compound keys and null/default values.
Michael Bayne
2011-10-29 13:14:02 -07:00
0a27e6ce4d
Added an SBT build so that I can deploy to Ivy.
Michael Bayne
2011-10-13 20:49:47 -07:00
627da759c7
Include sources in jar for (eventual) GWT usage.
Michael Bayne
2011-10-13 20:49:33 -07:00
c67f6aeac5
Oh yeah, we need a way to plug in a custom collector.
Michael Bayne
2011-10-13 20:39:39 -07:00
76e9d54683
Extracted the iteration over collections and creation of variable fetchers into a pluggable component.
Michael Bayne
2011-10-13 20:35:46 -07:00
2b6066adce
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2011-08-29 14:50:49 -07:00
447b109512
[maven-release-plugin] prepare release jmustache-1.4
Michael Bayne
2011-08-29 14:50:40 -07:00
4367ff6784
Only skip newlines if a tag is the only thing on the line.
Michael Bayne
2011-08-29 14:44:17 -07:00
a3eb9e22e1
Fixed bug where -last was not correctly handled on lists of a single element, where said element is both -first and -last.
Michael Bayne
2011-08-29 13:51:11 -07:00
28978548c5
Wrapped some long lines.
Michael Bayne
2011-08-29 13:42:11 -07:00
71fdc8aa33
Specify correct license in POM.
Michael Bayne
2011-08-26 11:26:41 -07:00
7255cb7c09
We keep the @Override on the same line round these parts.
Michael Bayne
2011-07-17 08:38:20 -07:00
3122c2c770
Merge pull request #8 from deadmoose/master
Michael Bayne
2011-07-17 08:37:17 -07:00
92d1edd3e7
Ignore generated files
David Hoover
2011-07-01 11:38:47 -07:00
b0737e3f2b
Add missing @Overrides
David Hoover
2011-07-01 11:25:52 -07:00
753546a63c
More stray tag character tests.
Michael Bayne
2011-06-21 22:00:37 -07:00
67d325624f
Parser reorganization, parsing lenience++.
Michael Bayne
2011-06-21 21:54:59 -07:00
2630e36cbd
Reference the 1.3 release artifact.
Michael Bayne
2011-06-03 16:43:55 -07:00
553ab51357
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2011-06-03 11:08:50 -07:00
ca50fe0b15
[maven-release-plugin] prepare release jmustache-1.3
Michael Bayne
2011-06-03 11:08:45 -07:00
7c05c7ca05
Unwrap line.
Michael Bayne
2011-05-28 10:52:36 -07:00
7a282c03e5
Fixed booched Markdown tag.
Michael Bayne
2011-05-28 10:51:09 -07:00
9fae13e008
Added Compiler.nullValue() for situations where one wants to provide a value for use when variables resolve to null, but still wishes for exceptions to be thrown when values are not resolvable (i.e. are typos). Pre-existing behavior is preserved if one uses defaultValue() or does not change the default configuration.
Michael Bayne
2011-05-28 10:42:45 -07:00
ef971015bd
Resolves issue 7 regarding proper handling of nested contexts when processing a nested context.
Michael Bayne
2011-05-26 14:52:45 -07:00
31d0a0985d
Added usage for default values.
Michael Bayne
2011-04-15 12:45:54 -07:00
1be9c52589
Let's add a test illustrating that default values are used for variables which resolve to null.
Michael Bayne
2011-04-15 12:39:16 -07:00
15ff48eabb
Some tidying up, name changes and clarifications. I went with "defaultValue" rather than "missingVariableValue" because the value is used any time a variable resolves to null, not necessarily just when it is missing. If you have a context like:
Michael Bayne
2011-04-15 12:35:33 -07:00
5d59eada29
Added compiler option to provide defaults for missing values
John Montgomery
2011-04-15 10:01:40 +01:00
d04f2c2f76
Reference the latest release artifact.
Michael Bayne
2011-04-13 16:20:58 -07:00
6acca915b1
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2011-04-13 16:18:42 -07:00
b38f17ea0f
[maven-release-plugin] prepare release jmustache-1.2
Michael Bayne
2011-04-13 16:18:35 -07:00
14e42bc984
Toned down caveat.
Michael Bayne
2011-04-13 15:44:13 -07:00
6b1551a1c9
Actually implemented delimiter change. Tidied things upalong the way.
Michael Bayne
2011-04-13 15:42:28 -07:00
f34539850a
Added blurb on standards mode.
Michael Bayne
2011-04-13 15:00:57 -07:00
9d8754b130
Fixed {{.}} doc typo.
Michael Bayne
2011-04-13 14:55:25 -07:00
03c02fba96
Formatting tweak.
Michael Bayne
2011-04-13 14:54:05 -07:00
aa5a5bf3c4
Clarify partials documentation a touch.
Michael Bayne
2011-04-13 14:53:34 -07:00
b1262c8edb
Added documentation for {{.}}.
Michael Bayne
2011-04-13 14:50:18 -07:00
ab0e1fdda4
Let's make Partials a subsection of Usage rather than a full top-level section.
Michael Bayne
2011-04-13 14:43:48 -07:00
5b81a46710
Added basic documentation on how to use partials support.
Michael Bayne
2011-04-13 14:43:17 -07:00
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.
Michael Bayne
2011-04-13 14:42:30 -07:00
419a8b887c
Fixed typo; restrict exception handling to just the loading of a partial template; pass runtime exceptions through unwrapped.
Michael Bayne
2011-04-13 14:41:49 -07:00
0959ccd0d9
More tidying.
Michael Bayne
2011-04-13 14:25:41 -07:00
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.
Michael Bayne
2011-04-13 11:49:59 -07:00
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.
Michael Bayne
2011-04-13 11:38:26 -07:00
b3f5e1e960
tighten up fix for {{.}}
Sean Scanlon
2011-03-27 16:18:17 -07:00
095c6f9a59
fix for using {{.}} in non-standards mode
Sean Scanlon
2011-03-27 16:07:20 -07:00
5fc751219e
Add template loader hook for partials {{>template}} support.
Sean Scanlon
2011-03-27 15:53:04 -07:00
76f86ea665
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2011-03-01 11:35:16 -08:00
13ac4f9b87
[maven-release-plugin] prepare release jmustache-1.1
Michael Bayne
2011-03-01 11:35:09 -08:00
4a1a125f87
Maybe these URLs will appease my fickle Maven mistress.
Michael Bayne
2011-03-01 11:34:20 -08:00
c94782fd9b
My release was borked, need to start over. Yay!
Michael Bayne
2011-03-01 11:31:55 -08:00
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.
Michael Bayne
2011-03-01 11:30:22 -08:00
74c19b2e5f
[maven-release-plugin] prepare release jmustache-1.1
Michael Bayne
2011-03-01 11:28:44 -08:00
d1d096ad84
Now I want some line wrapping.
Michael Bayne
2011-03-01 11:17:01 -08:00
6ca5e463da
We'll need a git: in there to let Maven know what's going on.
Michael Bayne
2011-03-01 11:16:34 -08:00
7ed35d55b5
Maybe Maven will like the https GIT URL better?
Michael Bayne
2011-03-01 11:15:55 -08:00
4c2a118add
Went back to a happy medium of density.
Michael Bayne
2011-02-28 20:30:23 -08:00
267f144f41
Eased up on the density in the examples a bit.
Michael Bayne
2011-02-28 20:27:12 -08:00
40b5a2b2c8
Corrected another error in the examples. Sheesh.
Michael Bayne
2011-02-28 20:24:14 -08:00
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.
Michael Bayne
2011-02-28 20:15:45 -08:00
04ea4b0cc0
Fixed typo in example.
Michael Bayne
2011-02-28 17:20:31 -08:00