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

endpoint: redesign templates and template routes #236

Open
erichanson opened this issue Jan 16, 2021 · 0 comments
Open

endpoint: redesign templates and template routes #236

erichanson opened this issue Jan 16, 2021 · 0 comments

Comments

@erichanson
Copy link
Member

Support for dynamic templates (endpoint.template and endpoint.template_route) was dropped when we dropped dependence on plv8 and plpython. They need to be resurrected. So might as well revisit the architecture also.

I took a shot at doing server-side rendering of doT templates here using plgo as a procedural language and otto to as a Javascript engine. The main argument for using doT templates (or any other template language that has a Javascript syntax) is that they could then also be rendered client-side, and they use the same language as widgets do (so you don't have to learn two things). That said, it's a really half-assed templating language and there is probably a whole swath of functionality that could be included here.

How should templates work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant