mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Link to Phoenix in the latest til
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# Render A Template To A String
|
# Render A Template To A String
|
||||||
|
|
||||||
Templates in a Phoenix application ultimately get compiled to functions that
|
Templates in a [Phoenix](http://www.phoenixframework.org/) application
|
||||||
can be quickly rendered with the necessary data. We can take a look at how a
|
ultimately get compiled to functions that can be quickly rendered with the
|
||||||
template will be rendered using
|
necessary data. We can take a look at how a template will be rendered using
|
||||||
[`Phoenix.View.render_to_string/3`](https://hexdocs.pm/phoenix/Phoenix.View.html#render_to_string/3).
|
[`Phoenix.View.render_to_string/3`](https://hexdocs.pm/phoenix/Phoenix.View.html#render_to_string/3).
|
||||||
|
|
||||||
First, we need a template:
|
First, we need a template:
|
||||||
|
|||||||
Reference in New Issue
Block a user