#partials — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #partials, aggregated by home.social.
-
📣 Django Icon packs with template partials
📄 More adventures and pushing the boundaries of vanilla Django
🔗 https://softwarecrafts.co.uk/100-words/day-298
#100_words,#django,#partials,#templates -
📣 Django Icon packs with template partials
📄 More adventures and pushing the boundaries of vanilla Django
🔗 https://softwarecrafts.co.uk/100-words/day-298
#100_words,#django,#partials,#templates -
📣 More adventures in building template components in Django
📄 Unlocking more possible patterns with template partials
🔗 https://softwarecrafts.co.uk/100-words/day-295
#100_words,#django,#templates,#partials -
📣 More adventures in building template components in Django
📄 Unlocking more possible patterns with template partials
🔗 https://softwarecrafts.co.uk/100-words/day-295
#100_words,#django,#templates,#partials -
I was wondering if there had been any progress on the state of HTML includes, and sure enough @mxbck has written about just that not too long ago.
-
I was wondering if there had been any progress on the state of HTML includes, and sure enough @mxbck has written about just that not too long ago.
-
Weekend #Python tip: #partials
Do you have a function that sometimes requires an extra argument and sometimes it doesn't? And passing that extra argument requires you to do lots of if-else around your code?
You can create a "shortcut" to a function with a certain set of args:
def do(what, urgent=False):
print("doing", what, "now" if urgent else "later")do("chores")
# doing chores laterchopchop = functools.partial(do, urgent=True)
chopchop("chores")
# doing chores now