Skip to content

Add a "compiler" for .lfeml files #1

@oubiwann

Description

@oubiwann

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions