Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support xmerl data structures #9

Open
cinova opened this issue Mar 24, 2015 · 4 comments
Open

Support xmerl data structures #9

cinova opened this issue Mar 24, 2015 · 4 comments
Assignees
Labels
Milestone

Comments

@cinova
Copy link

cinova commented Mar 24, 2015

erlsom parses XML and generates lists and tuples for tags, attributes, content, tail, etc.

It would be nice if exemplar could support this by taking an erlsom data structure and spitting out XML.

@oubiwann
Copy link
Member

In fact, what I'd like to do is make this the default internal representation for Exemplar markup data. Then, only when asked, should it convert this internal data to string values.

@oubiwann
Copy link
Member

See also:

@oubiwann
Copy link
Member

Additionally, it would be nice to be given erlsom XML data, parsed to a regular LFE data structure, and then use that to generate Exemplar forms (in other words, support full circle).

@oubiwann
Copy link
Member

Okay, some big changes coming in exemplar -- fortunately, nothing that breaks backward compatibility -- if anyone sees anything that breaks, please report! It's a bug!

Here's the commit that brought in the big code changes:

I'll document this shortly, but in essence, this lets one treat an entire XML/HTML document as data -- no immediate conversion to string. This will allow us to do some cool things with HTML document (and document fragment) composition -- hello templates!

I'll begin updating the docs and trying this work out on a new version of the LFE docs site ...

@oubiwann oubiwann changed the title Support erlsom data data structures Support xmerl data structures Mar 13, 2016
@oubiwann oubiwann added this to the Backlog milestone Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants