Objective-c port of https://github.com/cupcake/sigil