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

fiobj_mustache.c: No folder argument #136

Open
dertuxmalwieder opened this issue Dec 15, 2021 · 1 comment
Open

fiobj_mustache.c: No folder argument #136

dertuxmalwieder opened this issue Dec 15, 2021 · 1 comment

Comments

@dertuxmalwieder
Copy link

From the source code:

/**
 * Loads a mustache template, converting it into an opaque instruction array.
 *
 * Returns a pointer to the instruction array.
 *
 * The `folder` argument should contain the template's root folder which would
 * also be used to search for any required partial templates.
 *
 * The `filename` argument should contain the template's file name.
 */
mustache_s *fiobj_mustache_load(fio_str_info_s filename) {
  return mustache_load(.filename = filename.data, .filename_len = filename.len);
}

There is no folder argument.

@boazsegev
Copy link
Owner

Hi @dertuxmalwieder ,

Thank you for opening this issue.

Yes, you are right, the folder information is extracted automatically from the filename. While the API has been updated, the documentation lagged behind.

I'll get to it when I have a bit more time.

Thanks!

Cheers,
Bo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants