Generating Zips in an Eleventy Site / / No Comments Here’s an interesting question. Given an Eleventy site that has dynamic resources of some kind, how could you provide a way to get those resources in one simple zip file? Here’s how I solved that problem. Raymond Camden… more → Posted in: JavaScript Tagged with: Eleventy, Generating, Site, Zips
Legacy String Methods for Generating HTML / / No Comments I’m always really excited to see new methods on JavaScript primitives. These additions are acknowledgement that the language needs to evolve and that we’re doing exciting new things. That being said, I somehow just discovered some legacy String methods that you probably shouldn’t use but have existed forever. Let’s take a look! These legacy string methods take a basic string of text and wrap it in a HTML tag of the same name: "Hello".big() // "<big>Hello</big>" "Hello".blink() // "<blink>Hello</blink>" "Hello".bold() // "<b>Hello</b>" "Hello".italics() // "<i>Hello</i>" "Hello".link("https://davidwalsh.name") // "<a... more → Posted in: JavaScript Tagged with: Generating, HTML, Legacy, methods, String