-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35c12a8
commit 0154448
Showing
6 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends 'base.html' %} | ||
{% from 'bootstrap5/utils.html' import render_image %} | ||
|
||
{% block content %} | ||
<h2>Image</h2> | ||
<pre>{% raw %}{{ render_image(url_for('static', filename='rectangle-256x64.png'), alt='url_for') }}{% endraw %}</pre> | ||
Output: {{ render_image(url_for('static', filename='rectangle-256x64.png'), alt='url_for') }} | ||
|
||
<h2>Thumbnail</h2> | ||
<pre>{% raw %}{{ render_image('static/rectangle-256x64.png', alt='thumb', corner='thumbnail') }}{% endraw %}</pre> | ||
Output: {{ render_image('static/rectangle-256x64.png', alt='thumb', corner='thumbnail') }} | ||
|
||
<h2>Image fluid</h2> | ||
<pre>{% raw %}{{ render_image('static/rectangle-256x64.png', alt='fluid', fluid=True) }}{% endraw %}</pre> | ||
Output: {{ render_image('static/rectangle-256x64.png', alt='fluid', fluid=True) }} | ||
|
||
<h2>Centered image</h2> | ||
<pre>{% raw %}{{ render_image('static/rectangle-256x64.png', alt='center', center=True) }}{% endraw %}</pre> | ||
Output: {{ render_image('static/rectangle-256x64.png', alt='center', center=True) }} | ||
<pre>{% raw %}{{ render_image('static/rectangle-256x64.png', alt='mx-auto', mx_auto=True) }}{% endraw %}</pre> | ||
Output: {{ render_image('static/rectangle-256x64.png', alt='mx-auto', mx_auto=True) }} | ||
|
||
<h2>Rounded image</h2> | ||
<pre>{% raw %}{{ render_image('static/rectangle-256x64.png', alt='rounded', corner='rounded') }}{% endraw %}</pre> | ||
Output: {{ render_image('static/rectangle-256x64.png', alt='rounded', corner='rounded') }} | ||
|
||
<h2>Float image</h2> | ||
<pre>{% raw %}{{ render_image('static/rectangle-256x64.png', alt='float-start', float='start') }} | ||
{{ render_image('static/rectangle-256x64.png', alt='float-end', float='end') }}{% endraw %}</pre> | ||
Output: {{ render_image('static/rectangle-256x64.png', alt='float-start', float='start') }}{{ render_image('static/rectangle-256x64.png', alt='float-end', float='end') }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters