4

I am working with pug in keystone and while adding side navigation i am getting error like this.

> 6| a(href="#")About
--------------------^
7| a(href="#")Services
8| a(href="#")Client
9| a(href="#")Contact

Unexpected token `tag` expected `text`, `interpolated-code`, `code`, `:`, `slash`, `newline` or `eos`
1
  • Can you please show us the complete pug template
    – Sridhar
    Commented Jan 14, 2019 at 6:40

1 Answer 1

3

There needs to be a space between the tag/attributes and its content (after the closing parentheses) in order for it to be valid Pug:

a(href='#') About

More examples in the documentation on using tags with attributes in Pug

Not the answer you're looking for? Browse other questions tagged or ask your own question.