Skip to content

.isView() heuristic is missing "content" property #3

@mootari

Description

@mootari

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

utils.isView = function(obj) {
return utils.isObject(obj) && (obj.path || obj.contents || obj.isView || obj.isItem);
};

For comparison, the implementation in templates:
https://github.com/jonschlinkert/templates/blob/f030d2c2906ea9a703868f83574151badb427573/lib/utils.js#L319-L323

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions