HTML template Engine

Aperta
#3,899 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
deno, html, javascript, typescript
Ambito
design, frontend

Direzione di ricerca

Start by reading the Fresh documentation for views and routing, then review minimal-te's API and runtime behavior for Cloudflare Workers. The issue does not identify integration files, rendering boundaries, expected configuration, or acceptance tests. Done should include an agreed design for template usage and a working integration with documented behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Proposal

Hi!

I'd like to use html template engine function in fresh.
So, I made very tiny template engine called minimal-te(minimal template engine).
I'd like you to consider include the one.

Idea

Could you embed the minimal-te (lightweight template eigne)?
https://www.npmjs.com/package/minimal-te

This is a minimum template engine, that can replace the placeholders of HTML with data.
It just offers a replacing function. It does'nt offers the routing or fetching HTML from network, so there are no use of dependencies and fs! Therefore it can be used many environment such as Cloudflare Workers(there are no node fs API).

I think there are a lot of people who want to get off the express or another framework, and get in fresh. But for some people and teams, jsx/tsx is not easy to start with. I think fresh will be more approachableif it includes the template engine.

Appreciation

minimal‑te is currently in an early stage of development, and its feature set is intentionally minimal. Even so, the core template‑replacement functionality can work well on Cloudflare Workers.

Thank you for considering this idea.

Lingua principale
TypeScript
Stelle
13.8k
Fork
757
Merge medio
3m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di freshframework/fresh

Tutte le issue di freshframework/fresh

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.