tarantool / tarantool/http

Support block and include at templates

Open
#6 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature good first issue
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.