Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pug Attribute Interpolation Not Accepted By View Engine #218

Open
alphonso06 opened this issue Jan 20, 2023 · 1 comment
Open

Pug Attribute Interpolation Not Accepted By View Engine #218

alphonso06 opened this issue Jan 20, 2023 · 1 comment
Labels
🤔 Question Further information is requested

Comments

@alphonso06
Copy link

alphonso06 commented Jan 20, 2023

I'm trying to work with Pug's Attribute Interpolation.

But for example, if I want to render a link that has some query parameters from the server with it:

v1.Get("/layout", func(c *fiber.Ctx) error {
	return c.Render("index", fiber.Map{
		"value": "some-important-string-goes-here",
	}, "layouts/main")
})
a(href=`/somewhere?key=${value}`) Link

I would instead get an error:

views: template: index:15: bad number syntax: "+v"

I'm trying to figure out the subtle differences between this view engine and the one's described in Pug's official documentation. Any ideas what I'm doing wrong? Thanks. 😁

@ReneWerner87 ReneWerner87 added the 🤔 Question Further information is requested label Mar 23, 2023
@ReneWerner87
Copy link
Member

have you found the root cause ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants