From 9025a2e932df667616659787951d460e83429007 Mon Sep 17 00:00:00 2001 From: Adeel Date: Sun, 24 Aug 2014 20:37:48 +0300 Subject: [PATCH] Binding: Send output path to upstream. (#379) --- binding.cpp | 2 ++ include_path.css | 0 out.css | 0 test/sample.css | 0 4 files changed, 2 insertions(+) create mode 100644 include_path.css create mode 100644 out.css create mode 100644 test/sample.css diff --git a/binding.cpp b/binding.cpp index 3852586bd..32274e137 100644 --- a/binding.cpp +++ b/binding.cpp @@ -50,6 +50,7 @@ void ExtractOptions(Local optionsValue, void* cptr, sass_context_wrapper* if (isFile) { sass_file_context* ctx = (sass_file_context*) cptr; ctx->input_path = CreateString(options->Get(NanNew("file"))); + ctx->output_path = CreateString(options->Get(NanNew("outFile"))); ctx->options.image_path = CreateString(options->Get(NanNew("imagePath"))); ctx->options.output_style = options->Get(NanNew("style"))->Int32Value(); ctx->options.source_comments = source_comments = options->Get(NanNew("comments"))->Int32Value(); @@ -61,6 +62,7 @@ void ExtractOptions(Local optionsValue, void* cptr, sass_context_wrapper* } else { sass_context* ctx = (sass_context*) cptr; ctx->source_string = CreateString(options->Get(NanNew("data"))); + ctx->output_path = CreateString(options->Get(NanNew("outFile"))); ctx->options.image_path = CreateString(options->Get(NanNew("imagePath"))); ctx->options.output_style = options->Get(NanNew("style"))->Int32Value(); ctx->options.source_comments = source_comments = options->Get(NanNew("comments"))->Int32Value(); diff --git a/include_path.css b/include_path.css new file mode 100644 index 000000000..e69de29bb diff --git a/out.css b/out.css new file mode 100644 index 000000000..e69de29bb diff --git a/test/sample.css b/test/sample.css new file mode 100644 index 000000000..e69de29bb