T
T
tamtakoe2014-11-06 08:17:03
HTML
tamtakoe, 2014-11-06 08:17:03

How to describe such a pattern in jade?

Need to get a jade code so that everything does not merge into one line?

<login email autocomplete="off"
       name="email"
       placeholder="{{'login.formEmailPlaceholder' | translate}}"
       required
       tabindex="5"
       form-errors="{
             required:                    'login.errorRequiredEmail               | translate',
             email:                       'login.errorEmail                       | translate',
             exists:                      'login.errorEmailExists                 | translate',
             hostnameLocalNameNotAllowed: 'login.errorHostnameLocalNameNotAllowed | translate',
             hostnameInvalidHostname:     'login.errorHostnameInvalidHostname     | translate',
             emailAddressInvalidHostname: 'login.errorEmailAddressInvalidHostname | translate'
       }">

The jade file needs to be nicely formatted

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kitmanov, 2014-11-06
@tamtakoe

Use the pretty option .
But in general, let it merge, the browser doesn’t care, and you should only look at jade.

S
Sergey Krasnodemsky, 2014-11-06
@Prognosticator

html2jade.aaron-powell.com converter to help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question