You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP is good at generating documents that are part static text and part dynamic text. That's usually used to generate html pages. However, it can also be used to generate other content.
Our compiled classes are, at their essence, nothing but part static text and part dynamic text. Using some buffering functions to make sure that the results are saved to a file instead of to the output sent to a browser, this could in theory make for a more readable compiler.
I should definitely investigate this further!
(In a particularly mind-blowing moment, I realized that I could theoretically also use GoodLooking in this way. That would mean that GoodLooking would suddenly become a dependency of GoodService, which is something I never thought would happen. It's probably not the best idea, though, as GoodLooking is more html-oriented and less flexible than pure php is. Still, it's a fun think about.)
The text was updated successfully, but these errors were encountered:
JasperHorn
changed the title
Consider using php (or GoodLooking?) templating for compiler
Consider using php templating for compiler
Feb 12, 2020
PHP is good at generating documents that are part static text and part dynamic text. That's usually used to generate html pages. However, it can also be used to generate other content.
Our compiled classes are, at their essence, nothing but part static text and part dynamic text. Using some buffering functions to make sure that the results are saved to a file instead of to the output sent to a browser, this could in theory make for a more readable compiler.
I should definitely investigate this further!
(In a particularly mind-blowing moment, I realized that I could theoretically also use GoodLooking in this way. That would mean that GoodLooking would suddenly become a dependency of GoodService, which is something I never thought would happen. It's probably not the best idea, though, as GoodLooking is more html-oriented and less flexible than pure php is. Still, it's a fun think about.)
The text was updated successfully, but these errors were encountered: