Sha256: d37ed04d7ee9c177b8891037ad06154a307a3436ec0de3a1780c9ac9ac87c1fd
Contents?: true
Size: 588 Bytes
Versions: 7
Compression:
Stored size: 588 Bytes
Contents
class Embeditor.Adapters.RebelMouse extends Embeditor.Adapters.StaticTemplate className: "RebelMouse" @Template = Embeditor.Template('rebel_mouse') @QueryDefaults = maxwidth : 620 maxheight : 1000 @Matchers = [ new RegExp /rebelmouse\.com\/(.+?)\/?$/i ] swap: -> match = @_parseUrl() return false if not match site = encodeURIComponent(match[1]) @embed RebelMouse.Template maxheight : @queryParams.maxheight maxwidth : @queryParams.maxwidth site : site
Version data entries
7 entries across 7 versions & 1 rubygems