Last active
December 14, 2023 20:00
-
-
Save hepplerj/39b9b615a3ee25cc6d33399168801848 to your computer and use it in GitHub Desktop.
Django pass html template args
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
<div class="card" style="width: 18rem;"> | |
<img src="{{ image }}" class="card-img-top" alt="#"> | |
<div class="card-body"> | |
<h5 class="card-title">{{ title }}</h5> | |
<p class="card-text">{{ description }}</p> | |
<a href="#" class="btn btn-primary">{{ collection_purl }}</a> | |
</div> | |
</div> |
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
{% include "postal/collection_item.html" with title="Collection 1" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit." image="https://picsum.photos/200/150" collection_purl="https://rrchnm.org" %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment