That makes sense, thanks for the quick answer.

Em terça-feira, 12 de julho de 2016 10:14:18 UTC-3, Michał Muskała escreveu:
>
> The views are compiled to just being functions in the view module. So 
> exactly how you can use other functions from a module in a function
> in tha module, you can use other functions from the view module in 
> templates.
>
> Michał.
>
> On 12 Jul 2016, at 14:56, Luiz Paulo Vasconcellos <[email protected] 
> <javascript:>> wrote:
>
> I'm reading through Phoenix's source code in order to familiarize myself 
> more with the framework and elixir itself.
> One thing I can't seem to understand is the rendering process. How are 
> phoenix View helper functions made available in templates? I initially 
> thought it inserted something like <% import MyView %> in each template 
> before compiling, but it doesn't seem so.
>
> I'm still in the beginning of the learning journey, sorry if this is an 
> obvious question. Thanks!
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elixir-lang-talk/f32cdd6d-1213-4ae8-86c0-abdb9c0b5be0%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/elixir-lang-talk/f32cdd6d-1213-4ae8-86c0-abdb9c0b5be0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/eb47370e-b285-416d-8bfd-50630f9112e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to