Skip to main content

Crate typed_handlebars_macros

Crate typed_handlebars_macros 

Source
Expand description

The proc-macro half of typed-handlebars.

This crate is an implementation detail: it is a proc-macro crate, so it cannot re-export the runtime items the code it generates needs. Depend on typed-handlebars instead, which re-exports these three macros under shorter names and documents them with worked examples:

HereWhat you use
typed_handlebars_directory!typed_handlebars::directory!
typed_handlebars_file!typed_handlebars::file!
typed_handlebars_str!typed_handlebars::str!

Generated code refers to the runtime crate by whatever name the consumer gave it, so renaming the dependency is fine.

Macrosยง

typed_handlebars_directory
typed_handlebars_file
typed_handlebars_register_helper
typed_handlebars_str