DEV Community

Rafael Lima
Rafael Lima

Posted on

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)