Origami - simple templating module
Sunday, 9 November 2014 · 3 messages · last reply 10 Nov 2014
MG
Marc van Grootel9 Nov 2014 15:25 #
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
CG
Christian Grün10 Nov 2014 12:05 #
Hi Marc,
thanks a lot for Origami, looks promising!
Looking forward to your blog post,
Christian
Quoted text · Marc van Grootel · 24 lines
On Sun, Nov 9, 2014 at 3:25 PM, Marc van Grootel <marc.van.grootel at 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
MG
Marc van Grootel10 Nov 2014 18:29 #
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.
Quoted text · Christian Grün · 34 lines
On Mon, Nov 10, 2014 at 12:05 PM, Christian Grün <christian.gruen at 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 at 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
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery