We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#include "PrebyteEngine.h" int main() { prebyte::Prebyte prebyte; prebyte.set_variable("name", "Ada"); prebyte.add_argument("first-extra"); std::string output = prebyte.process("Hello {{ name }}\n"); }
#include "Engine.h" prebyte::Engine engine; prebyte::CompiledTemplate tpl = engine.compile("Hello {{ name }}\n"); prebyte::RenderContext ctx; ctx.set("name", "Ada"); std::string output = engine.render(tpl, ctx);
render()
render_to()
RenderContext
Value
compile_file(path)
load_compiled_file(path)
.pbc