Answers for "jinja2 word template datetime"

3

jinja2 datetime format

{{ date_of_something.strftime('%Y-%m-%d') }}
Posted by: Guest on July-14-2020
0

jinja2 base template

{% extends "layout.html" %}
{% block title %}Index{% endblock %}
{% block head %}
  {{ super() }}
  <style type="text/css">
    .important { color: #336699; }
  </style>
{% endblock %}
{% block content %}
  <h1>Index</h1>
  <p class="important">
    Welcome on my awesome homepage.
{% endblock %}
Posted by: Guest on July-10-2020

Python Answers by Framework

Browse Popular Code Answers by Language