Skip to content

Add hexdoc_format filter to wrap a literal string in FormatTree #90

@object-Object

Description

@object-Object

Example use case:

bookofhexxy.welcome.content: "The $(l:{hex_book_url})Hex Casting book/$ can be viewed here, with content from several $(l:https://pypi.org/project/hexdoc/)hexdoc/$-compatible addons."
{# current workaround (produces a warning message) #}
{{ fmt.styled(_f(
  _("bookofhexxy.welcome.content").format(hex_book_url=hex_book_url)
)) }}

{# with this feature #}
{{ fmt.styled(hexdoc_format(
  _("bookofhexxy.welcome.content").format(hex_book_url=hex_book_url)
)) }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions