Is your feature request related to a problem? Please describe.
In some Projects, I use HAML or Slim templates. It would be great if I could convert snippets from there to Phlex in one simple step.
Describe the solution you'd like
When pasting/typing into the ERB field, it would be nice to auto-detect the input format (ERB or HAML or Slim) and do the transformation to Phlex.
Instead of auto-detect, it could be aided by a format select box providing the available values.
One could try going directly from HAML to Phlex using e.g. https://github.com/LukeClancy/haml2phlex or from HAML to ERB e.g. using https://github.com/elia/haml2erb and then use the existing approach for ERB to Phlex. Another option might be integrating Tilt and changing its evaluation from executing to outputting the Ruby code.
Is your feature request related to a problem? Please describe.
In some Projects, I use HAML or Slim templates. It would be great if I could convert snippets from there to Phlex in one simple step.
Describe the solution you'd like
When pasting/typing into the ERB field, it would be nice to auto-detect the input format (ERB or HAML or Slim) and do the transformation to Phlex.
Instead of auto-detect, it could be aided by a format select box providing the available values.
One could try going directly from HAML to Phlex using e.g. https://github.com/LukeClancy/haml2phlex or from HAML to ERB e.g. using https://github.com/elia/haml2erb and then use the existing approach for ERB to Phlex. Another option might be integrating Tilt and changing its evaluation from executing to outputting the Ruby code.