Skip to content

xpika/templateify

Repository files navigation

templateify

Replace all subtree sequences without containers with variables. Store a map of those variables to their respective content.

templateify :: String -> (String,[String])

*Main> templateify "<div> hello <div> world </div> </div>"                                                                                                            
("<div>{area1}<div>{area2}</div> </div>",[" world "," hello "]) 

About

Turn your html into templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published