It is certainly doable, but we would need to leave everything outside of <%
... %> untouched.

It is not in our plans to work on this feature though, so pull requests are
appreciated!



*José Valimwww.plataformatec.com.br
<http://www.plataformatec.com.br/>Founder and Director of R&D*

On Sat, Dec 30, 2017 at 1:23 AM, Steven Blowers <shdblow...@gmail.com>
wrote:

> Would matching the filename format to *.html.eex work?
>
> Steven
>
> On Saturday, December 30, 2017 at 12:03:46 AM UTC, Louis Pilfold wrote:
>>
>> Hey
>>
>> How would the formatter know what format to use for eex files? It's often
>> HTML but there is no guarantee that is the case.
>>
>> Cheers,
>> Louis
>>
>> On Fri, 29 Dec 2017, 23:40 Steven Blowers, <shdbl...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> Thanks to those involved for their recent work with mix format which I
>>> have been trying out on 1.6rc0.
>>>
>>> I find myself now wanting to format *everything* in my current Phoenix
>>> project, including my EEx templates.
>>>
>>> The formatter does not currently do this, I was wondering if would even
>>> be the correct decision for the formatter to also do EEx files,
>>> as they are so different to a regular Elixir file and I should instead
>>> be looking for a HTML formatter which can handle embedded code in it?
>>>
>>> The downside to that would then be setting up two formatters for one
>>> project, the second one most likely being setup with Node/NPM,
>>> which I guess isn't so bad as most Phoenix projects already have
>>> Node/NPM to handle assets.
>>>
>>> What are people's thoughts on this?
>>>
>>> Steven
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "elixir-lang-core" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to elixir-lang-co...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/elixir-lang-core/8ffda124-215a-4dc0-8ed7-2b6fc57e1892%
>>> 40googlegroups.com
>>> <https://groups.google.com/d/msgid/elixir-lang-core/8ffda124-215a-4dc0-8ed7-2b6fc57e1892%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-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elixir-lang-core+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/elixir-lang-core/2d8c519b-850f-4bdf-a695-
> 4d21777ca15c%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/2d8c519b-850f-4bdf-a695-4d21777ca15c%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-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4J1cBDsOxgHwwkt6L48vLmMYMhk7ZQFU%3DD%3DZL4jU1WvSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to