Origami - simple templating module
Hi, I've just uploaded a small templating module to https://github.com/xokomola/origami Currently tested for BaseX 8.0 beta b863b4f but I will test with the latest snapshot later. With this module I wanted to see if there's a better way to do simple templating in pure XQuery taking advantage of the higher order functions that XQuery 3.0 offers. At the moment it only provides very simple selectors like "*" (match every element), "@*" matches every attribute and simple named elements and attributes. At the moment it's BaseX specific but should be adaptable to other databases that support XQuery 3.0. Happy to receive comments and improvements. In an upcoming blog post I will provide some more info. --Marc
Hi Marc, thanks a lot for Origami, looks promising! Looking forward to your blog post, Christian On Sun, Nov 9, 2014 at 3:25 PM, Marc van Grootel <marc.van.grootel@gmail.com> wrote:
Hi,
I've just uploaded a small templating module to https://github.com/xokomola/origami
Currently tested for BaseX 8.0 beta b863b4f but I will test with the latest snapshot later.
With this module I wanted to see if there's a better way to do simple templating in pure XQuery taking advantage of the higher order functions that XQuery 3.0 offers. At the moment it only provides very simple selectors like "*" (match every element), "@*" matches every attribute and simple named elements and attributes.
At the moment it's BaseX specific but should be adaptable to other databases that support XQuery 3.0.
Happy to receive comments and improvements.
In an upcoming blog post I will provide some more info.
--Marc
Blog post is up on http://xokomola.com/2014/11/10/xquery-origami-1.html It provides a bit more info on the design. But README on github is also updated to contain more documentation. Feedback welcome of course. On Mon, Nov 10, 2014 at 12:05 PM, Christian Grün <christian.gruen@gmail.com> wrote:
Hi Marc,
thanks a lot for Origami, looks promising!
Looking forward to your blog post, Christian
On Sun, Nov 9, 2014 at 3:25 PM, Marc van Grootel <marc.van.grootel@gmail.com> wrote:
Hi,
I've just uploaded a small templating module to https://github.com/xokomola/origami
Currently tested for BaseX 8.0 beta b863b4f but I will test with the latest snapshot later.
With this module I wanted to see if there's a better way to do simple templating in pure XQuery taking advantage of the higher order functions that XQuery 3.0 offers. At the moment it only provides very simple selectors like "*" (match every element), "@*" matches every attribute and simple named elements and attributes.
At the moment it's BaseX specific but should be adaptable to other databases that support XQuery 3.0.
Happy to receive comments and improvements.
In an upcoming blog post I will provide some more info.
--Marc
-- --Marc
participants (2)
-
Christian Grün -
Marc van Grootel