Skip to content

Instantly share code, notes, and snippets.

View pvanliefland's full-sized avatar

Pierre Vanliefland pvanliefland

View GitHub Profile
string content = story.Continue().Trim();
List<string> tags = story.currentTags;
if (tags.Count > 0) {
string lastTag = tags.Last().ToString();
if (lastTag == "positiveChoice") {
Debug.Log("Last Tag" + lastTag);
}
}
@pvanliefland
pvanliefland / README.md
Last active July 16, 2024 11:25
Django embed template tag

embed template tag

Rationale

The issue

When working on a web application, you may have, on different screens, a variable number of similar components with minor differences. A "card" component is a good example: every card has a wrapper section element, a title, and an arbitrary content wrapped inside a div element.

Consider the following simplified HTML example of an application :