Skip to content

HAML to Phlex, Slim to Phlex #405

@bb

Description

@bb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions