Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle live view templates in .ex files #5

Open
adamzapasnik opened this issue Jan 27, 2021 · 3 comments
Open

Handle live view templates in .ex files #5

adamzapasnik opened this issue Jan 27, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@adamzapasnik
Copy link
Owner

adamzapasnik commented Jan 27, 2021

I don't think it works now. Need to figure out a way to handle live view templates in .ex files. Maybe it can be handled by this plugin directly or maybe it has to be delegated to a code editor extension.

@adamzapasnik adamzapasnik added the enhancement New feature or request label Jan 28, 2021
@adamzapasnik
Copy link
Owner Author

I've tought about it and I think the simplest solution would be to add a new parser/priner for .ex files, we could call textToDoc with {parser: 'eex'} on necessary block of code. I'm only not sure how it would work along mix format

@adamzapasnik adamzapasnik self-assigned this Mar 1, 2021
@mkhennoussi
Copy link

This could be really useful with the Surface library to format the surface templates in .ex files :

~H"""
   <div>
    Hello, I'm a component !
  </div>
"""

@adamzapasnik
Copy link
Owner Author

hey @mkhennoussi thanks for the idea! I created a separate issue for that #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants