Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Allen mojavelinux

View GitHub Profile
@mojavelinux
mojavelinux / angular-localizer-treeprocessor.rb
Last active Mar 7, 2017 — forked from jaredmcateer/wrap-text-with-filter.rb
An Asciidoctor treeprocessor that wraps text content in Angular's localize filter.
View angular-localizer-treeprocessor.rb
#!/usr/bin/env ruby
require 'asciidoctor/extensions'
class AngularLocalizerTreeprocessor < Asciidoctor::Extensions::Treeprocessor
def process document
document.blocks? ? (localize_blocks document) : nil
end
def localize_blocks node
@mojavelinux
mojavelinux / Writing Tools Writeup.markdown
Created Jan 30, 2012 — forked from matthewmccullough/Writing Tools Writeup.md
How To Write A Technical Book (One Man's Modest Suggestions)
View Writing Tools Writeup.markdown