biotope / biotope/biotope-element

Experiment: Templates

Open
#232 0 comments 0 reactions 0 assignees View on GitHub
discussion
Dominant language
TypeScript
Stars
15
Forks
5
PR merge metrics
No merged PRs in 30d

Description

**Describe the solution you'd like**
I'd like to add an optional `protected readonly template` property to a component so that the render function could auto-apply it automatically (replacing the need for a `render` function). This would require a template engine to be used.

Check `templates` branch for a working example.

Contributor guide

Open the contributing guide

Research direction

Review the templates branch for the working example, then trace how the component's render function is currently used. Determine the scope of an optional protected readonly template property and the required template engine; done should allow the template to be applied automatically without a render function.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.