Skip to content

Instantly share code, notes, and snippets.


Dan Allen mojavelinux

View GitHub Profile
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
def localize_blocks node
mojavelinux / Writing Tools Writeup.markdown
Created Jan 30, 2012 — forked from matthewmccullough/Writing Tools
How To Write A Technical Book (One Man's Modest Suggestions)
View Writing Tools Writeup.markdown