I hereby claim:
- I am lwansbrough on github.
- I am loch (https://keybase.io/loch) on keybase.
- I have a public key whose fingerprint is 6E9E 3263 B559 E193 A881 B536 2A39 05A0 09ED 9401
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// | |
// ObjectStore.h | |
// | |
// Created by Lochlan Wansbrough on 2015-06-06. | |
// Copyright (c) 2015 Facebook. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface ObjectStore : NSObject |
var untemplate = (function() { | |
this.tokenize = function(html, template) { | |
var names = [], | |
obj = {}, | |
encodedHtml = escape(html); | |
var templateRegex = new RegExp(escape(template).replace(/[\\\/\.\-\*]/g, function(match) { | |
return '\\' + match; | |
}).replace(/%7B%7B([^(?:%7B)]+?)%7D%7D/g, function(match, name) { | |
names.push(name); |