K
K
kepo2017-06-12 13:19:11
HTML
kepo, 2017-06-12 13:19:11

How to write this one in pug/jade?

I'm slowing down, but I can't write it in pug

<label for="cb" class="pure-checkbox">
    <input id="cb" type="checkbox"> I've read the terms and conditions
</label>

label.pure-checkbox(for="cb")
      input#cb(type="checkbox") I've read the terms and conditions

Gives an error
input is a self closing element: <input/> but contains nested content.

Ok, I do it without nested, another mistake
Error: render function or template not defined in component: anonymous

What's on? All other form elements work as expected. Identification is correct everywhere.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-06-12
@kepo

label.pure-checkbox(for="cb")
  input#cb(type="checkbox")
  | I've read the terms and conditions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question