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

Expose stat as w3 fileapi-like object #80

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

Conversation

coolaj86
Copy link

@coolaj86 coolaj86 commented Aug 13, 2018

PR Dependencies:

Description

stat has a lot of properties and methods.

Since there are some cases where we may need to "fake" the stat object, it is best to limit its exposure to the 3 template functions.

Also, since W3 already specifies FileApi, File, and Blob which represent the most interesting data that is used throughout the templates - lastModified, size, name, and type - it would seem to make sense to use that as the object to pass around between template functions rather than the full stat object.

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

Successfully merging this pull request may close these issues.

None yet

2 participants