Closed marianvlad closed 1 month ago
Hi,
I have a component Layout with a parameter called styles of type string. There is a way to use like this?
styles := "body { color: red; }"
<style>{ styles }</style> and return <style>body { color: red; }</style> instead <style>{ styles }</style>
✅ Found the solution
styles := "<style>body { color: red; }</style>"
@templ.Raw(styles)
thanks, it works!
I was searching for a solution since yesterday
Hi,
I have a component Layout with a parameter called styles of type string. There is a way to use like this?
✅ Found the solution