Crate stpl [] [src]

stpl - Super template library for Rust

This version of stpl is a Proof of Concept. If you like it, or dislike it please be vocal about it.

stpl goals:

  • no ugly macros; actually, no macros at all;
  • no text-files with weird syntax; Rust only!
  • still, nice syntax and support for run-time templates (magic!)

Nits:

  • uses 4 nightly unstable features

Help

Please see ./playground subdirectory for example usage.

Modules

html

HTML rendering functions

Structs

Fn

Use to wrap closures with

HandleDynamic

handle_dynamic handle

Traits

Render

A type that can be rendered to Renderer

Renderer

Rendering destination

Functions

call_dynamic

Call a template dynamically (with ability to update at runtime)

handle_dynamic