DEV Community

Rafael Lima
Rafael Lima

Posted on

1

Get values from selected keys

Got text values corresponding to the selected keys, sent from the backend server through an object, by a GET request to the HTML form, using a Nunjucks tag.

server.get('/route/:id', (req, res) => {
    return res.render('page', { data })
})
{% if object.key == "value"  %} text value  {% endif %}

🏗 Project: https://github.com/rafaellimags/gym-manager

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay