-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
.isView() heuristic is missing "content" property #3
Comments
@mootari Thanks for the issue! If you're reporting a bug, please be sure to include:
|
The check here might make more sense. If Some of this logic was done as we were still building the API and learning about what we were creating. Thanks for creating issues, it's much appreciated. |
Not sure if this is relevant, but utils.normalizeContent() in |
This specific @mootari if you'd like to do a PR to update this piece of code, that would be awesome! I think you pointed out in another issue that some of these use Also, if you have ideas on consolidating the places where this code is duplicated into a single module that can be reused that would be great! Thanks for getting into the code and opening these issues, it really helps. |
We don't want to use |
I did a quick search through assemble's dependencies. The following places call .isView():
|
|
Unless I'm missing something here I would assume that "content" should be checked as well.
The implementation in assemble-loader:
assemble-loader/utils.js
Lines 38 to 40 in 6d6b001
For comparison, the implementation in templates:
https://github.com/jonschlinkert/templates/blob/f030d2c2906ea9a703868f83574151badb427573/lib/utils.js#L319-L323
The text was updated successfully, but these errors were encountered: