home.social

#partials — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #partials, aggregated by home.social.

fetched live
  1. 📣 Django Icon packs with template partials
    📄 More adventures and pushing the boundaries of vanilla Django
    🔗 softwarecrafts.co.uk/100-words
    #100_words,#django,#partials,#templates

  2. 📣 Django Icon packs with template partials
    📄 More adventures and pushing the boundaries of vanilla Django
    🔗 softwarecrafts.co.uk/100-words
    #100_words,#django,#partials,#templates

  3. 📣 More adventures in building template components in Django
    📄 Unlocking more possible patterns with template partials
    🔗 softwarecrafts.co.uk/100-words
    #100_words,#django,#templates,#partials

  4. 📣 More adventures in building template components in Django
    📄 Unlocking more possible patterns with template partials
    🔗 softwarecrafts.co.uk/100-words
    #100_words,#django,#templates,#partials

  5. 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.

    mxb.dev/blog/buildless/

    #HTML #partials

  6. 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.

    mxb.dev/blog/buildless/

    #HTML #partials

  7. 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 later

    chopchop = functools.partial(do, urgent=True)
    chopchop("chores")
    # doing chores now

  8. Using partials in Node.js are incredibly useful. They can help clean up your code a lot, and help prevent mistakes. Earlier, got some strange encoding errors, and later realized that I wasn't using a proper HTML5 boilerplate. EJS makes using partials easy. #ejs #partials #nodejs