View elixir_loader.erl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(elixir_loader). | |
-include("../../elixir/include/elixir.hrl"). | |
-export([undefined_function/3, undefined_lambda/3]). | |
undefined_lambda(M, F, A) -> error_handler:undefined_lambda(M, F, A). | |
undefined_function(M, F, A) -> | |
io:format("Lookup for module ~p~n", [M]), | |
Name = lists:flatten(io_lib:format("~p.ex", [M])), |
View gist:881251
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/environment/development.rb: | |
# require 'lib/sc_middleware' | |
# config.middleware.use ScMiddleware | |
class ScMiddleware | |
def initialize(app) | |
@app = app | |
SC::Rack::Service.filesystem = true | |
@project = SC::Project.load(File.dirname(__FILE__)+"/../public/self_video", :parent => SC.builtin_project) | |
@sproutcore = SC::Rack::Service.new([@project]) |