arachne / link-new-tab
Latte macro for links that should open in new tab.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/arachne/link-new-tab
Requires
- php: >=5.4.0
- latte/latte: ^2.3.0
- nette/application: ^2.3.0
- nette/di: ^2.3.0
Requires (Dev)
- arachne/bootstrap: ~0.2.1
- codeception/codeception: ~2.2.0@rc
This package is auto-updated.
Last update: 2022-02-01 12:58:28 UTC
README
Latte macro for links that should open in new tab.
Inspired by this article.
Installation
The best way to install Arachne/LinkNewTab is using Composer.
$ composer require arachne/link-new-tab
Usage
// Your latte template.
<a n:linkNewTab="http://google.com">google</a>
// HTML result.
<a href="http://google.com" target="_blank" rel="noopener noreferrer">google</a>