Sha256: 1cc18d7c8bc14d4fea2dc838e054eda6ad3a0ba52c935cce5345af21a296914b

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

(ns wisp.engine.node
  (:use [fs :only [read-file-sync]]
        [wisp.sequence :only [rest]]
        [wisp.runtime :only [str]]
        [wisp.reader :only [read*]]
        [wisp.compiler :only [compile*]]))

(set! global.**verbose** (<= 0 (.indexOf process.argv :--verbose)))

;; Register `.wisp` file extension so that
;; modules can be simply required.
(set! (get require.extensions ".wisp")
  (fn [module uri]
    (._compile module
               (compile* (read* (read-file-sync uri :utf8) uri)))))

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-wisp-source-0.8.0 vendor/node_modules/wisp/src/engine/node.wisp
ruby-wisp-source-0.7.0 vendor/src/engine/node.wisp