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

Generic Hiccup transformation fn #4

Open
simongray opened this issue Nov 18, 2024 · 1 comment
Open

Generic Hiccup transformation fn #4

simongray opened this issue Nov 18, 2024 · 1 comment

Comments

@simongray
Copy link
Member

Most of the code in the hiccup->text function should be able to be re-purposed for a more generic transform-hiccup function which takes a similar input of conversions (matcher->zip-fn). Rather than returning string, the converted tree is returned.

This function should also be accompanied by some helper code for making XML Hiccup HTML-safe, i.e. element tags prefixed with a namespace and attributes prefixed with data-.

@simongray simongray changed the title Generic Hiccup rewrite Generic Hiccup rewrite fn Nov 18, 2024
@simongray simongray changed the title Generic Hiccup rewrite fn Generic Hiccup transformation fn Nov 18, 2024
@simongray
Copy link
Member Author

The hiccup->text could also possibly be turned into an implementation using this more generic function. We'll see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant