Skip to content

madeso/forma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Forma

Forma, swedish, to shape, to form to template. A simple (typesafe) templating engine ported from my c# template engine.

Work in progress

API:

const auto [generator, error] = forma::Parse(...);
std::string ret = generator(myClass);

Template syntax:

{{ prop }} {{- "also prop, trim printable spaces" -}}
{{prop | function | function(with_arguments)}}
{{include file}} {{include "file/with.extension"}}
{{#list}}repeated{{/list}} {{range also_list}}repeated{{end}}
{{if bool_prop}}perhaps{{end}}

About

typesafe c template engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages