Compile/Build from strings instead of files #2871
Unanswered
dashtinejad
asked this question in
Ideas
Replies: 1 comment
-
Any thoughts? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been looking to compile a string via eleventy programmatic API, but I couldn't find anything. I guess it's not implemented in this way.
So the idea here is to be able to compile a template, directly from string, instead of reading it from a file.
And the motivation behind it, is that the files are stored in a database, instead of files. So I would like to get them on the fly and be able to compile them via eleventy.
I have something like this in mind:
Is it possible to implement? Or is it against the philosophy behind eleventy? I believe eleventy has a great engine for compiling template languages into HTML, but it's coupled to files at the moment.
Glad to hear your opinions on this. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions