Support block and include at templates
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 81
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
Have to add support blocks and include at templates. Main goal of that to use main template of page and add data inside. For example:
main.html.el
<html>
% include 'title/title.html.el'
</html>
<body>
% block 'body'
</body>
When you'll call controller where template of controller contain:
% extend 'main.html.el'
% block 'body'
<table>
...
</table>
% endblock
It have to generate page from above template and include result at main.html.el
Include action have to include just a snippet of html/text block.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the main.html.el and controller-template examples to trace how templates are currently rendered. Define how % extend, % block, % endblock, and include should compose the page, including the _main.html.el result and snippet-only includes. Done means a controller template can produce the shown page structure with reusable blocks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- backend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100