There is the following SLIM code:
input international-phone-number="international-phone-number" type="text"
It code generates the HTML code:
<input international-phone-number="international-phone-number" type="text></input>
But I need to get <input international-phone-number type="text></input>
How can I do it? Thanks!
There have been multiple issue reports on GitHub on this, and they have implemented support for valueless attributes (not sure if it's still in the temple version, if it is you'll have to use this). You'll need to do the following:
input(international-phone-number type="text")
Make sure you also set the :format
to :html
like this:
slimrb --option format=:html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With