Skip to content

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

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)
)) }}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    • Status
      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions