Skip to content

Unable to render component in HTML attribute #250

Description

@dakur

Version: 2.9.2

Bug Description

I am not able to render component into HTML attribute, it fails with Tag {control} must be used in HTML text.

Steps To Reproduce

  • create a component
  • render it with control macro into HTML attribute, e.g.: <html lang="{control languageCode}">

Expected Behavior

<html lang="cs">

Possible Solution

Allow it.

Workaround

{capture $languageCode}{control languageCode}{/capture}
<html lang="{$languageCode}">

works, but…

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions