Skip to content

insinfo/twig_dart

Repository files navigation

twig_dart

Pub build status

A simple server-side HTML templating engine for Dart.

Though its syntax is but a superset of HTML, it supports features such as:

  • Custom elements
  • Loops
  • Conditionals
  • Template inheritance
  • Block scoping
  • switch syntax
  • Interpolation of any Dart expression

twig is a good choice for applications of any scale, especially when the development team is small, or the time invested in building an SPA would be too much.

Documentation

Each of the packages within this repository contains some sort of documentation.

Documentation for twig syntax and directives has been moved to the galileo framework wiki.

This Repository

Within this repository are three packages:

  • package:twig - Contains the twig parser, AST, and HTML renderer.
  • package:twig_preprocessor - Handles template inheritance, and facilitates the use of "compile-time" constructs.
  • package:build_twig - Uses package:build to compile twig templates, therefore allowing speedy incremental builds to HTML files.
  • package:galileo_twig - galileo support for twig. galileo contains other facilities to speed up application development, so something like twig is right at home.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages