Template variables v5

Update to my NetNewsWire Template variables theme pushed.

This theme remains useful as a template variable reference, I checked it recently for the date stamp options and discovered it was missing a variable I was already using in the theme I’m working on: [[datetime_medium]]. Fixed!

Also, in a face-palm moment, I remembered <textarea> will render HTML markup as text. Makes much more sense than messing about with deprecated tags. Finally wrapped the content in a <main>, not sure if doing so helps anyone, but I can’t see it hurting as a convention.

Enable Web Inspector in NetNewsWire

The reason I’m subtlety talking down the usefulness of this theme is when I made it I didn’t know about the NetNewsWire debug menu. Enabling it exposes the Enable Web Inspector menu. With this option checked we can right click in the article pane in NetNewsWire, select Inspect Element, and Safari dev tools opens to inspect the source of the current theme template, styled with the current theme styles. Absolutely essential for NetNewsWire theme development!

Enable the debug menu in NetNewsWire

In Terminal enter and execute:

defaults write com.ranchero.NetNewsWire-Evergreen ShowDebugMenu 1

That’s it!