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

Consider using php templating for compiler #133

Open
JasperHorn opened this issue Feb 12, 2020 · 0 comments
Open

Consider using php templating for compiler #133

JasperHorn opened this issue Feb 12, 2020 · 0 comments

Comments

@JasperHorn
Copy link
Collaborator

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

@JasperHorn JasperHorn changed the title Consider using php (or GoodLooking?) templating for compiler Consider using php templating for compiler Feb 12, 2020
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