-
Notifications
You must be signed in to change notification settings - Fork 2
Examples
These must be revised for 0.6
Demonstrates that xf:extract
orders nodes in document order.
See: source
Demonstrates that xf:extract
returns no duplicates.
See: source
Demonstrates that xf:extract
returns only the outermost nodes
matched by default. Use xf:extract-inner
in case you want to select
only the inner-most nodes matched. The default is also available as
xf:extract-outer
.
See: source
Defines an extractor that lists all code examples from a blog post.
See: source
Pick out news stories from the homepage of the New York Times. Based on an example in an Enlive tutorial by David Nolen.
See: source
See: source
Transforms all elements and attributes turning them into uppercase.
See: source
An XSLT-like transformation example. Note that the performance is abysmal. No doubt it can be improved but it does show that this type of transformation is not very well suited for Origami.
See: source
For comparison a working example of the original code. This runs at light-speed compared to my Origami example.
An HTML view template composed from different HTML templates. Example described in more detail on my blog.
See: source
See: source