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

Support for other HTML elements besides links #17

Closed
SirRawlins opened this issue Jan 27, 2016 · 3 comments
Closed

Support for other HTML elements besides links #17

SirRawlins opened this issue Jan 27, 2016 · 3 comments

Comments

@SirRawlins
Copy link

Have you given any thought to support for other HTML elements such as <strong> or <i> using a similar syntax. Perhaps something like https://gist.github.com/hagenburger/b96fada108d05d3c8f52

IMHO would compliment the link functions nicely.

@lime
Copy link
Contributor

lime commented Jan 28, 2016

I think what you are requesting is already available using It.tag. :)

en:
  hello: Hello %{strong:%{name}}!
<%=it 'hello', strong: It.tag(:strong), name: user.name %>

It's mentioned in the readme, though not very prominently.

@SirRawlins
Copy link
Author

Right you are Emil! I hadn't spotted that in the README but looks like it
does deliver this.

I'll do some experimenting today.

Thanks for pointing this out.
On Jan 28, 2016 8:33 AM, "Emil Sågfors" notifications@github.com wrote:

I think what you are requesting is already available using It.tag. :)

en:
hello: Hello %{strong:%{name}}!

<%=it 'hello', strong: It.tag(:strong), name: user.name %>

It's mentioned in the readme, though not very prominently.


Reply to this email directly or view it on GitHub
#17 (comment).

@iGEL
Copy link
Owner

iGEL commented Jan 29, 2016

Thanks @lime. I close the comment for now.

@iGEL iGEL closed this as completed Jan 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants