Skip to content

Chat Example miss-leading #786

@arcliox

Description

@arcliox

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureCode based project improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions