I am laying out a ruby on rails VIEW in .slim
This is an example of syntax:
.row
.col-xs-6
.form-group
.input-group
input.form-control.input-lg id="card_cvv" size="10" type="text" v-model='cc_ccv' placeholder="CVV"
i.glyphicon.glyphicon-question-sign
The thing is that I need to make a div but I don't see documentation on how to make a div:
How do I make that div?
I need something like:
.div class="g-recaptcha brochure__form__captcha" data-sitekey="llaveDelSitio"
I'd appreciate your help.
When you put
.foo
in slim, you are indicating that you want adiv
with a class equal tofoo
, therefore it.foo
generates:If you want to create an html tag you simply put the name of the tag:
will create