Comments (3)
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.
from it.
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" [email protected] 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).
from it.
Thanks @lime. I close the comment for now.
from it.
Related Issues (20)
- Does not work inside a model
- Locale option not handled
- Complement I18n methods? HOT 1
- update documentation for how to use this in a controller HOT 2
- Problem with MissingInterpolationArgument exception HOT 3
- Alternative placeholder syntaxes HOT 3
- Need release to rubygems! HOT 2
- Use it in Rails controllers like `t`? HOT 1
- master and last gem version different code HOT 1
- Provide Support for i18n-tasks
- Using it with slim
- Custom usage of It::Parser and optional string escaping HOT 2
- Passing a html_safe href to It.it raises `Invalid href given` HOT 3
- Doesn't work with i18n 1.3.0 HOT 4
- No support for `mail_to` style links HOT 3
- Mismatched pluralization lookup when localized string missing
- Better error message for 'wrong number of arguments (given 0, expected 1)'
- Handling when the link label is the same as the link
- Link text containing curly braces breaks the interpolation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from it.