You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
example_chat.cpp line 30: crow::mustache::set_base(".");
This line sets the base directory where mustache looks for the template, however this example is miss-leading, unless a custom templates base is set via a blueprint the handle() function of the DynamicRule class sets the directory back to "templates". Moreover if a blueprint is set this would overwrite what the above line does in any case.
Example works if build as part of the Crow build as the CMakeLists file copies the relevant template for this example into ./templates/.
Suggested fix remove line 30.
The text was updated successfully, but these errors were encountered:
example_chat.cpp line 30: crow::mustache::set_base(".");
This line sets the base directory where mustache looks for the template, however this example is miss-leading, unless a custom templates base is set via a blueprint the handle() function of the DynamicRule class sets the directory back to "templates". Moreover if a blueprint is set this would overwrite what the above line does in any case.
Example works if build as part of the Crow build as the CMakeLists file copies the relevant template for this example into ./templates/.
Suggested fix remove line 30.
The text was updated successfully, but these errors were encountered: