Skip to content
New issue

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

Add aliases #10

Open
TorbenKoehn opened this issue Oct 7, 2015 · 1 comment
Open

Add aliases #10

TorbenKoehn opened this issue Oct 7, 2015 · 1 comment
Milestone

Comments

@TorbenKoehn
Copy link
Member

An alias should look like this

alias alias-name <element>

e.g.

alias btn a.btn(href=$url)

This can then be used like a regular element tag

btn.btn-default(href='/some/sub/page')

The calling element will
Notice that both href-attributes will be merged and create a single, complete URL.

@jacmoe
Copy link
Contributor

jacmoe commented Feb 28, 2016

👍

@TorbenKoehn TorbenKoehn added this to the 1.6 milestone Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants