mirror of
https://github.com/pantor/inja.git
synced 2026-04-27 01:39:26 +00:00
split dev files and amalgamate into a single header
This commit is contained in:
16
include/utils.hpp
Normal file
16
include/utils.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef PANTOR_INJA_UTILS_HPP
|
||||
#define PANTOR_INJA_UTILS_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace inja {
|
||||
/*!
|
||||
@brief render with default settings
|
||||
*/
|
||||
inline std::string render(const std::string& input, const json& data) {
|
||||
return Environment().render(input, data);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PANTOR_INJA_UTILS_HPP
|
||||
Reference in New Issue
Block a user