Commit 80abeaf0 by Andrew Nesbitt

hello world

parent 4e040698
...@@ -12,4 +12,7 @@ logs ...@@ -12,4 +12,7 @@ logs
results results
node_modules node_modules
npm-debug.log npm-debug.log
\ No newline at end of file
build
.lock-wscript
\ No newline at end of file
node-sass node-sass
========= =========
\ No newline at end of file
Node bindings to libsass
*work in progress*
\ No newline at end of file
{
"author": "Andrew Nesbitt <andrewnez@gmail.com> (http://andrew.github.com)",
"name": "sass",
"description": "wrapper around libsass",
"version": "0.0.0",
"homepage": "http://github.com/andrew/node-sass",
"repository": {
"type": "git",
"url": "git://github.com/andrew/node-sass.git"
},
"dependencies": {},
"devDependencies": {},
"optionalDependencies": {},
"engines": {
"node": "*"
}
}
#include <v8.h>
#include <node.h>
using namespace v8;
Handle<Value> Render(const Arguments& args) {
HandleScope scope;
Local<String> result = args[0]->ToString();
return scope.Close(result);
}
void RegisterModule(v8::Handle<v8::Object> target) {
NODE_SET_METHOD(target, "render", Render);
}
NODE_MODULE(sass, RegisterModule);
\ No newline at end of file
var binding = require('./build/Release/sass')
exports.render = binding.render;
\ No newline at end of file
srcdir = "."
blddir = "build"
VERSION = "0.0.1"
def set_options(opt):
opt.tool_options("compiler_cxx")
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.target = "sass"
obj.source = "sass.cpp"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment