Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/openemr/mustache.php
A Mustache implementation in PHP.
https://github.com/openemr/mustache.php
fixing markup typo in README
2fbc599c261746723e774ad8e0615ebf20a2cd47 authored over 14 years ago by Justin Hileman <[email protected]>
2fbc599c261746723e774ad8e0615ebf20a2cd47 authored over 14 years ago by Justin Hileman <[email protected]>
Added known issue for missing child context in sections.
bb4905dd1b2081b38fa63e6b8329858e20e94be6 authored over 14 years ago by Justin Hileman <[email protected]>
bb4905dd1b2081b38fa63e6b8329858e20e94be6 authored over 14 years ago by Justin Hileman <[email protected]>
Simplified dot notation example, fixed sample output.
81fa51c1af71e501debbd996f536edd3aa910e50 authored over 14 years ago by Justin Hileman <[email protected]>
81fa51c1af71e501debbd996f536edd3aa910e50 authored over 14 years ago by Justin Hileman <[email protected]>
Merge branch 'dev' into feature/pragma-dot-notation
f0d171aed67118721a05161f632990358c6d0931 authored over 14 years ago by Justin Hileman <[email protected]>
f0d171aed67118721a05161f632990358c6d0931 authored over 14 years ago by Justin Hileman <[email protected]>
Removing now-deprecated HandlebarMustache class.
f5b4c7ddf1d3c42051c8fac824476e2a123e766d authored over 14 years ago by Justin Hileman <[email protected]>
f5b4c7ddf1d3c42051c8fac824476e2a123e766d authored over 14 years ago by Justin Hileman <[email protected]>
Inverting expected/actual param order in MustacheTest so the unit test output makes sense.
6350e6180b6010820c6c39bcdbd0e9a6d1d898a3 authored over 14 years ago by Justin Hileman <[email protected]>
6350e6180b6010820c6c39bcdbd0e9a6d1d898a3 authored over 14 years ago by Justin Hileman <[email protected]>
Merge branch 'feature/inverted-sections' into dev
099ad75416415225a9d692bad9ed109888e294cb authored over 14 years ago by Justin Hileman <[email protected]>
099ad75416415225a9d692bad9ed109888e294cb authored over 14 years ago by Justin Hileman <[email protected]>
Fixed complex example to use inverted sections rather than fancy ruby-ish context swizzling (which never worked in PHP anyway).
57a6aafff1ebe15490a1c257fe84c0e6d9499cc0 authored over 14 years ago by Justin Hileman <[email protected]>
57a6aafff1ebe15490a1c257fe84c0e6d9499cc0 authored over 14 years ago by Justin Hileman <[email protected]>
Add inverted section.
fc170fca1103d68a4b1ae31cbfb4a9c4daf64105 authored over 14 years ago by Justin Hileman <[email protected]>
fc170fca1103d68a4b1ae31cbfb4a9c4daf64105 authored over 14 years ago by Justin Hileman <[email protected]>
Removing now-deprecated HandlebarMustache class.
5400cd91a03809537b6e64e1bc226c2415e8d897 authored over 14 years ago by Justin Hileman <[email protected]>
5400cd91a03809537b6e64e1bc226c2415e8d897 authored over 14 years ago by Justin Hileman <[email protected]>
Added known issue for current pragma limitation.
8cbf5ebb0fffc1010c3e23cb48479c1ae370f60e authored over 14 years ago by Justin Hileman <[email protected]>
8cbf5ebb0fffc1010c3e23cb48479c1ae370f60e authored over 14 years ago by Justin Hileman <[email protected]>
Merge branch 'feature/unit-testing' into dev
16be686da0cd0df4dac2ba1075b423887c416d16 authored over 14 years ago by Justin Hileman <[email protected]>
16be686da0cd0df4dac2ba1075b423887c416d16 authored over 14 years ago by Justin Hileman <[email protected]>
fixing documentation for unit tests
3108aff56d3fae25c098cb64efa5f440bd75c3d8 authored over 14 years ago by Justin Hileman <[email protected]>
3108aff56d3fae25c098cb64efa5f440bd75c3d8 authored over 14 years ago by Justin Hileman <[email protected]>
Rudimentary unit test script.
6e508d5b482819ec33eb2f67a31c991a60f85d68 authored over 14 years ago by Justin Hileman <[email protected]>
6e508d5b482819ec33eb2f67a31c991a60f85d68 authored over 14 years ago by Justin Hileman <[email protected]>
Added more complex dot notation example (from defunkt/mustache).
818a07a64ae05e45b25cd75b41539fef082000f4 authored over 14 years ago by Justin Hileman <[email protected]>
818a07a64ae05e45b25cd75b41539fef082000f4 authored over 14 years ago by Justin Hileman <[email protected]>
Example for dot notation pragma.
d2ff6fa1accb292ceeb1d1f46af410f33adae532 authored over 14 years ago by Justin Hileman <[email protected]>
d2ff6fa1accb292ceeb1d1f46af410f33adae532 authored over 14 years ago by Justin Hileman <[email protected]>
Merging changes from TraversableMustache
db4ff1058d8fb5a834285bf0408e4f89d1a20770 authored over 14 years ago by Justin Hileman <[email protected]>
db4ff1058d8fb5a834285bf0408e4f89d1a20770 authored over 14 years ago by Justin Hileman <[email protected]>
Trailing whitespace cleanup.
05767e3b74a67a9a204040939cb531752225da34 authored almost 15 years ago by Justin Hileman <[email protected]>
05767e3b74a67a9a204040939cb531752225da34 authored almost 15 years ago by Justin Hileman <[email protected]>
added notes on purpose of the mustache subclasses.
88f67fc53eff6e3077138ba7849007f29db131e7 authored almost 15 years ago by Justin Hileman <[email protected]>
88f67fc53eff6e3077138ba7849007f29db131e7 authored almost 15 years ago by Justin Hileman <[email protected]>
Merge branch 'dev' of github.com:bobthecow/mustache.php into dev
a9cdfc08fc9611b7815d8a605948ff4b38c20956 authored almost 15 years ago by Justin Hileman <[email protected]>
a9cdfc08fc9611b7815d8a605948ff4b38c20956 authored almost 15 years ago by Justin Hileman <[email protected]>
Merge branch 'master' of github.com:bobthecow/mustache.php into dev
06ea0542196e689794bb6df55998f68c846ed33e authored almost 15 years ago by Justin Hileman <[email protected]>
06ea0542196e689794bb6df55998f68c846ed33e authored almost 15 years ago by Justin Hileman <[email protected]>
Added double section, escaped output, utf8 escaped and utf8 unescaped examples.
1ede993bb328709d8a9ae97d00f181cfb9600ed4 authored almost 15 years ago by Justin Hileman <[email protected]>
1ede993bb328709d8a9ae97d00f181cfb9600ed4 authored almost 15 years ago by Justin Hileman <[email protected]>
Updated default character escaping for UTF-8 compatibility. For other character sets, or to disable UTF-8 support entirely, change the 'charset' property or renderEscaped method on subclasses.
4baf602eabccf7d9a3ee11fbbc1db01b9be1cb03 authored almost 15 years ago by Justin Hileman <[email protected]>
4baf602eabccf7d9a3ee11fbbc1db01b9be1cb03 authored almost 15 years ago by Justin Hileman <[email protected]>
Update README to reflect preferred mustache class implementation. Rendering arbitrary generic view class/array and template is secondary.
fa8c81dcfd04d6b442a94122b59a105d7f5ce082 authored almost 15 years ago by Justin Hileman <[email protected]>
fa8c81dcfd04d6b442a94122b59a105d7f5ce082 authored almost 15 years ago by Justin Hileman <[email protected]>
Two new examples: 'delimiters' and 'sections'. Would be more exciting if 50% of new examples didn't fail :)
4059c4da0088d4ad149dae0c2ca536b17519391b authored almost 15 years ago by Justin Hileman <[email protected]>
4059c4da0088d4ad149dae0c2ca536b17519391b authored almost 15 years ago by Justin Hileman <[email protected]>
Added known issue for complex complex example failure.
cb5985171cefd42ab900880cc0601899403deaa6 authored almost 15 years ago by Justin Hileman <[email protected]>
cb5985171cefd42ab900880cc0601899403deaa6 authored almost 15 years ago by Justin Hileman <[email protected]>
Added 'known issues' to readme.
e77226c4f61688e354a7bd6bdebd1a10721a8d5e authored almost 15 years ago by Justin Hileman <[email protected]>
e77226c4f61688e354a7bd6bdebd1a10721a8d5e authored almost 15 years ago by Justin Hileman <[email protected]>
Complex example was a direct port of ruby/javascript complex example, resulting in some methods named with PHP reserved keywords. Fixing that oversight.
26aad7b4903b061deba911e44331dfafe99efcb0 authored almost 15 years ago by Justin Hileman <[email protected]>
26aad7b4903b061deba911e44331dfafe99efcb0 authored almost 15 years ago by Justin Hileman <[email protected]>
Fixed trailing newline in simple example output.
a93feb2f788b690ac89f4b607887267c6126feb1 authored almost 15 years ago by Justin Hileman <[email protected]>
a93feb2f788b690ac89f4b607887267c6126feb1 authored almost 15 years ago by Justin Hileman <[email protected]>
Adding examples.
5e99b152521cd2b072e82298d56b8839ab92b7de authored almost 15 years ago by Justin Hileman <[email protected]>
5e99b152521cd2b072e82298d56b8839ab92b7de authored almost 15 years ago by Justin Hileman <[email protected]>
Added default template name based on underscorified class name. I.e. a class named FooBarBaz would try to load a template named foo_bar_baz.mustache in the current directory.
1c40e4982545fd6132293a7af4018e118c73394d authored almost 15 years ago by Justin Hileman <[email protected]>
1c40e4982545fd6132293a7af4018e118c73394d authored almost 15 years ago by Justin Hileman <[email protected]>
Changed 'file' variable name to more appropriate 'name' variable.
98422c110e471bfeb5ec6e8b503828281dded121 authored almost 15 years ago by Justin Hileman <[email protected]>
98422c110e471bfeb5ec6e8b503828281dded121 authored almost 15 years ago by Justin Hileman <[email protected]>
Fixed RegEx used in changeDelimiter call to match initial RegEx string. This doesn't really need the section tag modifiers (# and /) but they are included here for consistency.
a51146f5e2cffe6bac6939b014f57cb757f8b9ac authored almost 15 years ago by Justin Hileman <[email protected]>
a51146f5e2cffe6bac6939b014f57cb757f8b9ac authored almost 15 years ago by Justin Hileman <[email protected]>
Added a second example. It's still not enough, but better than nothing.
b1c3e06144c96b57c3e3107cd2d4fe9cf09b6083 authored almost 15 years ago by Justin Hileman <[email protected]>
b1c3e06144c96b57c3e3107cd2d4fe9cf09b6083 authored almost 15 years ago by Justin Hileman <[email protected]>
Added TraversableMustache, a Mustache subclass that allows traversal of variables via dots... they approximately map to ->, as in ->bar->baz means the same thing as {{foo.bar.baz}}
b8d4321e4aefb45a8d9ba93e8eae4eb6975f5a55 authored almost 15 years ago by Justin Hileman <[email protected]>
b8d4321e4aefb45a8d9ba93e8eae4eb6975f5a55 authored almost 15 years ago by Justin Hileman <[email protected]>
Added HandlebarMustache, an extended Mustache class which contains file handling for templates and partials. This will most likely be merged in with the main Mustache class once it's a little more solid.
e0b9b6c522c84af4c1895c7dfada0183bb77fa69 authored almost 15 years ago by Justin Hileman <[email protected]>
e0b9b6c522c84af4c1895c7dfada0183bb77fa69 authored almost 15 years ago by Justin Hileman <[email protected]>
Wrap the render() function in a __toString method for implicit string conversion.
b2666da4bb023a1c808d10781235ab48cccdb646 authored almost 15 years ago by Justin Hileman <[email protected]>
b2666da4bb023a1c808d10781235ab48cccdb646 authored almost 15 years ago by Justin Hileman <[email protected]>
Updated documentation to reflect thrown exceptions.
0586105b5ecdc6032053de62b27cf4528e54d694 authored almost 15 years ago by Justin Hileman <[email protected]>
0586105b5ecdc6032053de62b27cf4528e54d694 authored almost 15 years ago by Justin Hileman <[email protected]>
Split section exceptions, variable exceptions and partial exceptions into distinct configuration options.
c849d351f9a9ec730143629a02ba79a7ae6b6213 authored almost 15 years ago by Justin Hileman <[email protected]>
c849d351f9a9ec730143629a02ba79a7ae6b6213 authored almost 15 years ago by Justin Hileman <[email protected]>
Added MustacheException class, added exceptions for missing variables and partials and unclosed or unopened section tags. Added throwExceptions member variable to enable/disable throwing exceptions on unexpected tags. Defaults to false.
d30febdf571784a4a93f08d5167dd4bbbb7a11ef authored almost 15 years ago by Justin Hileman <[email protected]>
d30febdf571784a4a93f08d5167dd4bbbb7a11ef authored almost 15 years ago by Justin Hileman <[email protected]>
Fixed initialization for template and partials to avoid thunking defaults added by subclasses.
e7058fc1d594dd62bff9d03f18b9aed95ce257a3 authored almost 15 years ago by Justin Hileman <[email protected]>
e7058fc1d594dd62bff9d03f18b9aed95ce257a3 authored almost 15 years ago by Justin Hileman <[email protected]>
Updating readme to link to pretty Mustache homepage rather than github page.
0e73e66a34e7bce487f5e019390f8ef3f69e66fc authored almost 15 years ago by Justin Hileman <[email protected]>
0e73e66a34e7bce487f5e019390f8ef3f69e66fc authored almost 15 years ago by Justin Hileman <[email protected]>
Major updates to fix context in iterable blocks. Context is now stored in an array, with the most local context at index 0. Changed everything to pass context arrays around by reference. Added internal function for recursive render calls, allowing the top level to take a single view object, but all internal calls to expect a context array.
f3bb419557f1bbb05adcb9b666c14d057d6708f3 authored almost 15 years ago by Justin Hileman <[email protected]>
f3bb419557f1bbb05adcb9b666c14d057d6708f3 authored almost 15 years ago by Justin Hileman <[email protected]>
Changed otag and ctag to public. Someone might possibly want to change these at the outset without passing junk in at the top of the template.
151e43540a504e4f2dbdeb56ebebf60e3fb8ff8b authored almost 15 years ago by Justin Hileman <[email protected]>
151e43540a504e4f2dbdeb56ebebf60e3fb8ff8b authored almost 15 years ago by Justin Hileman <[email protected]>
Updated render initialization code. Now passes $this as the view object unless an external view object is provided.
1aec69bb9a9796fdd44d8256561cb76093fc6ee3 authored almost 15 years ago by Justin Hileman <[email protected]>
1aec69bb9a9796fdd44d8256561cb76093fc6ee3 authored almost 15 years ago by Justin Hileman <[email protected]>
Usage.
6cd78e932a9f7b38d9953a7612b9ae66ac09dfc0 authored almost 15 years ago by Justin Hileman <[email protected]>
6cd78e932a9f7b38d9953a7612b9ae66ac09dfc0 authored almost 15 years ago by Justin Hileman <[email protected]>
MIT License
36bd2d87dc6940cb0ad6080a5556c31b5d1a15a2 authored almost 15 years ago by Justin Hileman <[email protected]>
36bd2d87dc6940cb0ad6080a5556c31b5d1a15a2 authored almost 15 years ago by Justin Hileman <[email protected]>
Fixed passing partials to already-instantiated Mustache object. Added (brief) documentation for partials.
bbebabe39af9a68764041921459f57d9c65d71c4 authored almost 15 years ago by Justin Hileman <[email protected]>
bbebabe39af9a68764041921459f57d9c65d71c4 authored almost 15 years ago by Justin Hileman <[email protected]>
Initial commit of Mustache.php
5c62ec5721aaa4d302fb3aaafc1a04fe02b6c21e authored almost 15 years ago by Justin Hileman <[email protected]>
5c62ec5721aaa4d302fb3aaafc1a04fe02b6c21e authored almost 15 years ago by Justin Hileman <[email protected]>