Skip to content

Extending the #Each Syntax to accept a Scalar Value / Object#12

Open
justshrey wants to merge 1 commit into
ActiveCampaign:masterfrom
justshrey:master
Open

Extending the #Each Syntax to accept a Scalar Value / Object#12
justshrey wants to merge 1 commit into
ActiveCampaign:masterfrom
justshrey:master

Conversation

@justshrey
Copy link
Copy Markdown

@justshrey justshrey commented Apr 2, 2018

This request automatically boxes a Scalar Value / Object to an IEnumerable when using the #Each Syntax instead of throwing an Exception

Removes the exception '{0}' is used like an array by the template, but is a scalar value or object in your model.

Addresses issue #11

Will add it to the ParserOption framework made by @JPVenson once it in the main line.

… #Each Syntax instead of throwing an Error.

Will add it to the ParserOption framework made by @JPVenson once it in the main line.
@JPVenson
Copy link
Copy Markdown

Hey @justshrey I have Forked my pull-request and made a lot more changes including the Definition of false. If the changes do not help you out, you could have a look in the fork https://github.com/JPVenson/morestachio

@justshrey
Copy link
Copy Markdown
Author

@JPVenson Thanks 👍 . Will check it out.

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.

2 participants