Skip to content

Custom templates directory overwritten in DynamicRule #1186

@BartelNieuwenhuyse

Description

@BartelNieuwenhuyse

Crow/include/crow/routing.h

Lines 643 to 644 in 326e96b

else if (mustache::detail::get_template_base_directory_ref() != "templates")
mustache::set_base("templates");

This line is overwriting my custom set templates directory.

Should it not do the same as

Crow/include/crow/routing.h

Lines 740 to 741 in 326e96b

else if (mustache::detail::get_template_base_directory_ref() != mustache::detail::get_global_template_base_directory_ref())
mustache::set_base(mustache::detail::get_global_template_base_directory_ref());

Instead if hardcoded "templates"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions