https://github.com/devinus/jorge
A simple Erlang DSL for generating XML based on tuples of tuples
https://github.com/devinus/jorge
Last synced: about 1 year ago
JSON representation
A simple Erlang DSL for generating XML based on tuples of tuples
- Host: GitHub
- URL: https://github.com/devinus/jorge
- Owner: devinus
- Created: 2012-05-03T22:34:48.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-11-02T17:46:00.000Z (over 13 years ago)
- Last Synced: 2025-04-04T20:45:46.412Z (about 1 year ago)
- Language: Erlang
- Homepage:
- Size: 229 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jorge
Jorge (pronounced HOR-HAY) is a simple Erlang DSL for generating XML based on
tuples of tuples.
## Example
```erl-sh
1> Foo = {foo, [{grault, garply}, {waldo, fred}],
1> {bar, [
1> {baz, 2},
1> {quux, corge},
1> {plugh, 5.0},
1> {xyzzy, <<"thud">>},
1> {spam, fun() -> eggs end}
1> ]}
1> }.
{foo,[{grault,garply},{waldo,fred}],
{bar,[{baz,2},
{quux,corge},
{plugh,5.0},
{xyzzy,<<"thud">>},
{spam,#Fun}]}}
2> jorge:jorge(Foo).
[<<"">>,
[<<"">>,
[[<<"">>,<<"2">>,<<"">>],
[<<"">>,<<"corge">>,<<"">>],
[<<"">>,<<"5.0">>,<<"">>],
[<<"">>,<<"thud">>,<<"">>],
[<<"">>,<<"eggs">>,<<"">>]],
<<"">>],
<<"">>]
```