Skip to content

Commit

Permalink
Update request_lifecycle.md (#6047)
Browse files Browse the repository at this point in the history
fixed typo "inect" -> "inject"
  • Loading branch information
ellyxir authored Jan 11, 2025
1 parent c368f8e commit 98ab9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/request_lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ To do that, we'll use the special HEEx tags for executing Elixir expressions: `{

Remember our templates are written in HEEx (HTML+EEx). HEEx is a superset of EEx, and thereby supports the EEx `<%= %>` interpolation syntax for interpolating arbitrary blocks of code. In general, the HEEx `{...}` interpolation syntax is preferred anytime there is HTML-aware intepolation to be done – such as within attributes or inline values with a body.

The only times `EEx` `<%= %>` interpolation is necessary is for interpolating arbitrary blocks of markup, such as branching logic that inects separate markup trees, or for interpolating values within `<script>` or `<style>` tags.
The only times `EEx` `<%= %>` interpolation is necessary is for interpolating arbitrary blocks of markup, such as branching logic that injects separate markup trees, or for interpolating values within `<script>` or `<style>` tags.

This is what the `hello_html/show.html.heex` template should look like:

Expand Down

0 comments on commit 98ab9a7

Please sign in to comment.