Skip to content

EEx typespec #14770

@LostKobrakai

Description

@LostKobrakai

Elixir and Erlang/OTP versions

Elixir 1.18.4

Operating system

Mac OS X

Current behavior

EEx.compile_string is spec'ed to return String.t, but eex engines to not seem to need to adhere to that result. E.g. Phoenix.HTML.Engine returns safe tuples.

Expected behavior

At this point it's probably unavoidable to officially extend the interface here, but I'm wondering it EEx engines would be expected to return just strings or plain any datastructure. I'm looking into builing up something similar like Phoenix.HTML.Engine + the safe protocol.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions