Updated: Nov 30, 2019 by Pradeep Gowda.
ericchiang/pup: Parsing HTML at the command line


bash curl -s | pup 'title, section#blog not(ul.meta)' | pandoc -f html -t context --template=compact -o cfn-templates.pdf

Plain HTML with a few bureaucratic gestures | Mark J. Nelson

By adding just four lines of browser bureaucracy to a 1990s HTML skeleton, it’s still possible to write basic HTML that renders pretty well on the modern web:

This is what I have chosen as starter template for my simple HTML pages:

<!DOCTYPE html>
<meta name=viewport content="width=device-width, initial-scale=1">
<meta charset=utf-8>
<link rel="stylesheet" href="/css/ebstarws.css" type="text/css"/>

<h1>Page title</h1>
<p>Write stuff here ...</p> - Online Web Tools – Online web tools to get your work done faster.