⌈⌋ ⎇ branch:  Bitrhythm


Hex Artifact Content

Artifact 332f4afef8f17ac96f3bcfb22eca167cf5bf262974c7ae2b4d22e9d9b095304e:


0000: 69 6d 70 6f 72 74 20 2a 20 61 73 20 72 69 6f 74  import * as riot
0010: 20 66 72 6f 6d 20 27 2e 2f 72 69 6f 74 27 0a 69   from './riot'.i
0020: 6d 70 6f 72 74 20 7b 20 63 6f 6d 70 69 6c 65 2c  mport { compile,
0030: 20 70 61 72 73 65 72 73 20 7d 20 66 72 6f 6d 20   parsers } from 
0040: 27 2e 2f 62 72 6f 77 73 65 72 2f 63 6f 6d 70 69  './browser/compi
0050: 6c 65 72 2f 69 6e 64 65 78 27 0a 69 6d 70 6f 72  ler/index'.impor
0060: 74 20 65 78 74 65 6e 64 20 66 72 6f 6d 20 27 2e  t extend from '.
0070: 2f 62 72 6f 77 73 65 72 2f 63 6f 6d 6d 6f 6e 2f  /browser/common/
0080: 75 74 69 6c 2f 6d 69 73 63 2f 65 78 74 65 6e 64  util/misc/extend
0090: 27 0a 0a 66 75 6e 63 74 69 6f 6e 20 6d 6f 75 6e  '..function moun
00a0: 74 28 2e 2e 2e 61 72 67 73 29 20 7b 0a 20 20 76  t(...args) {.  v
00b0: 61 72 20 72 65 74 0a 20 20 63 6f 6d 70 69 6c 65  ar ret.  compile
00c0: 28 66 75 6e 63 74 69 6f 6e 20 28 29 20 7b 20 72  (function () { r
00d0: 65 74 20 3d 20 72 69 6f 74 2e 6d 6f 75 6e 74 2e  et = riot.mount.
00e0: 61 70 70 6c 79 28 72 69 6f 74 2c 20 61 72 67 73  apply(riot, args
00f0: 29 20 7d 29 0a 20 20 72 65 74 75 72 6e 20 72 65  ) }).  return re
0100: 74 0a 7d 0a 0a 65 78 70 6f 72 74 20 64 65 66 61  t.}..export defa
0110: 75 6c 74 20 65 78 74 65 6e 64 28 7b 7d 2c 20 72  ult extend({}, r
0120: 69 6f 74 2c 20 7b 0a 20 20 6d 6f 75 6e 74 2c 0a  iot, {.  mount,.
0130: 20 20 63 6f 6d 70 69 6c 65 2c 0a 20 20 70 61 72    compile,.  par
0140: 73 65 72 73 0a 7d 29 0a                          sers.}).