newsbot-portal/components/bulma/html/href.templ

9 lines
218 B
Plaintext
Raw Normal View History

package html
templ ALink(url, title string) {
<a href={ templ.SafeURL(url) }>{ title }</a>
}
templ ANewTab(url, text string) {
<a href={ templ.SafeURL(url) } target="_blank" rel="noopener noreferrer">{ text }</a>
}