Skip to content

document available template variables #11

Description

@dherman

I've been poking around at the default templates and using introspection like #{Object.keys(file)} to find out what built-in template variables are available for the layout files, but it'd be great to get a list of these in the README. So far I see:

file.{title,template,render-file,inPath,inFile,outPath,href,prepared,project}
files.{root,pages,posts}

Any others? I'm happy to file a pull request with a patch to the README.

Thanks,
Dave

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions