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