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

Add file stat to current model #79

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sehrope
Copy link
Contributor

@sehrope sehrope commented Feb 7, 2015

This is a new PR that adds fs.statSync(...) to the model when rendering partials. It allows referencing things like the last modified timestamp or file size in the model itself.

It was originally part of #75 which also included a couple typo fixes but was subsequently reverted (by e59fd7b).

I've created a new PR atop the latest master for it and looks like all tests on Travis are passing.

@sehrope
Copy link
Contributor Author

sehrope commented Mar 8, 2015

Any update on getting this merged in?

If template is processing a file then call fs.statSync(...) and add
it to the current object in partial so that layouts can reference
filesystem stats about the file (ex: file size or last modified time)
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.

1 participant