We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{% templ StaticStyledComponent() %} <div style="background-color: red;">{%= "text" %}</div> {% endtempl %}
This would not be allowed.
{% templ StyledComponent(backgroundColor string) %} <div style={%= "background-color: " + backgroundColor %}>{%= "text" %}</div> {% endtempl %}
This would not be allowed. Only SafeCSS would be allowed here, if anything.
{% templ StyledComponent(css string) %} <style type="text/css"> {%= css %} </style> {% endtempl %}
The text was updated successfully, but these errors were encountered:
feat: add additional checks to fix #23 and #24
bd42ac9
No branches or pull requests
Support constant attributes
Do not allow setting style as a dynamic string
This would not be allowed.
Do not allow the inclusion of any other elements or template items within a style element
This would not be allowed. Only SafeCSS would be allowed here, if anything.
To render raw CSS, a templ.RawCSS component can be used
The text was updated successfully, but these errors were encountered: