9 lines
223 B
Plaintext
9 lines
223 B
Plaintext
|
package templhtml
|
||
|
|
||
|
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>
|
||
|
}
|