aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mustache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mustache.h b/include/mustache.h
index 279f356..43e2b08 100644
--- a/include/mustache.h
+++ b/include/mustache.h
@@ -555,6 +555,11 @@ namespace crow
detail::get_loader_ref() = std::move(loader);
}
+ inline std::string load_text(const std::string& filename)
+ {
+ return detail::get_loader_ref()(filename);
+ }
+
inline template_t load(const std::string& filename)
{
return compile(detail::get_loader_ref()(filename));