   marketplace/
       app.py
       templates/
           index.html
           product.html
       static/
           style.css
      from flask import Flask, render_template

   app = Flask(__name__)

   # Пример данных о продуктах
   products = [
       {'id': 1, 'name': 'Товар 1', 'price': 100},
       {'id': 2, 'name': 'Товар 2', 'price': 150},
       {'id': 3, 'name': 'Товар 3', 'price': 200},
   ]

   @app.route('/')
   def index():
       return render_template('index.html', products=products)

   @app.route('/product/<int:product_id>')
   def product(product_id):
       product = next((p for p in products if p['id'] == product_id), None)
       return render_template('product.html', product=product)

   if __name__ == '__main__':
       app.run(debug=True)
   <!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <title>Маркетплейс</title>
</head>
<body>
    <h1>Добро пожаловать в наш маркетплейс!</h1>
    <ul>
        {% for product in products %}
            <li>
                <a href="{{ url_for('product', product_id=product.id) }}">{{ product.name }}</a> - {{ product.price }} руб.
            </li>
        {% endfor %}
    </ul>
</body>
</html>
<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <title>{{ product.name }}</title>
</head>
<body>
    {% if product %}
        <h1>{{ product.name }}</h1>
        <p>Цена: {{ product.price }} руб.</p>
        <a href="/">Назад к списку товаров</a>
    {% else %}
        <h1>Товар не найден</h1>
        <a href="/">Назад к списку товаров</a>
    {% endif %}
</body>
</html>
body {
    font-family: Arial, sans-serif;
}

h1 {
    color: #333;
}

ul {
    list-style-type: none;
}

li {
    margin: 10px 0;
}