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

Enums

DynamicError

Constants

EXIT_CODE_FAILED

Exit code used by the dynamic template binary on failure

EXIT_CODE_NOT_FOUND

Exit code used by the deyamic template binary when template key was not found

EXIT_CODE_SUCCESS

Exit code used by the dynamic template binary on success

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)

call_dynamic_self

Call current binary file to handle the template

handle_dynamic