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

Add a "compiler" for .lfeml files #1

Open
oubiwann opened this issue Mar 18, 2014 · 0 comments
Open

Add a "compiler" for .lfeml files #1

oubiwann opened this issue Mar 18, 2014 · 0 comments
Milestone

Comments

@oubiwann
Copy link
Member

Would be be possible to define a new macro for creating lfeml pages? E.g.,

(defpage some-name
  ...)

or

(deftemplate some-name
  ...)

with various function definitions in them (or outside of them, possibly in .lfe files).

Everything inside (defpage ...) could then get rendered to some-name.html in a configured directory (a la Hoplon).

All .lfe files would have to get compiled first. Then .lfeml files would get compiled. Server-side files would be .lfe, compiled to .beam. Client-side files would be .lfeml, compiled to .html. It might even be possible to slurp the .lfeml files in, call the page macross, and write the result out.

Need to think about the machinery of this some more...

@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
None yet
Projects
None yet
Development

No branches or pull requests

1 participant