Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Added warning for {{#each}} helper usage in templates (#228)
closes #123 - As described in docs (https://docs.ghost.org/api/handlebars-themes/helpers/foreach/) it is highly encouraged to use {{#foreach}} helper instead of native handlebar's {{#each}} - Added it as a part deprecation errors set because it's not really a template compilation error and just a helper use waning which fits better with deprecations group - Error language used almost identical to the one in docs adjusted to how other rules are worded
- Loading branch information
Showing
6 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,8 @@ | |
{{#if error}} | ||
{{error.statusCode}} | ||
{{/if}} | ||
|
||
{{#each}} | ||
</body> | ||
{{ghost_foot}} | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,8 @@ | |
{{#if error}} | ||
{{error.statusCode}} | ||
{{/if}} | ||
|
||
{{#each}} | ||
</body> | ||
{{ghost_foot}} | ||
{{@site.ghost_foot}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters