Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response from template #682

Merged
merged 4 commits into from
Aug 4, 2024
Merged

response from template #682

merged 4 commits into from
Aug 4, 2024

Conversation

kaplanelad
Copy link
Contributor

@kaplanelad kaplanelad commented Aug 1, 2024

Adding the option to return template response in a simple way without initializer register or local files.
I have also changed the controller dashboard to engine-view

  • Adding view engine tests
  • Testing controller

@kaplanelad kaplanelad changed the title template response from direct string response from template Aug 1, 2024
S: Serialize,
{
let mut tera = tera::Tera::default();
tera.add_raw_template("default", template)?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.join("**")
.join("*.html")
.to_str()
.ok_or_else(|| Error::string("invalid blob"))?,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blob -> glob

@jondot jondot added this to the 0.7.0 milestone Aug 2, 2024
@kaplanelad kaplanelad merged commit dae73c4 into master Aug 4, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants