We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://www.11ty.io/docs/languages/javascript/#optional-data-method
For example right now if you return a string a la:
class Test { data() { return "Ted"; } }
your data looks something like this
{"0":"T","1":"e","2":"d","page":{"date":"2019-07-25T13:31:57.085Z","inputPath":"./test/stubs/exports-flatdata.11ty.js","fileSlug":"exports-flatdata","url":"/exports-flatdata/","outputPath":"./dist/exports-flatdata/index.html"}}
The text was updated successfully, but these errors were encountered:
Does anyone envision any problems if we enforce objects only when data resolves?
Sorry, something went wrong.
e9a1994
zachleat
No branches or pull requests
https://www.11ty.io/docs/languages/javascript/#optional-data-method
For example right now if you return a string a la:
your data looks something like this
The text was updated successfully, but these errors were encountered: