Skip to content

Instantly share code, notes, and snippets.

@Asken
Asken / compile.cs
Last active April 25, 2016 14:58
SharpScss
public static string Run(string style, Func<ImportData, string> tryImport)
{
var pathToTemp = Environment.GetEnvironmentVariable("TEMP", EnvironmentVariableTarget.Machine);
try
{
var result = Scss.ConvertToCss(style,
new ScssOptions()
{
TryImport = (string file, string path, out string scss, out string map) =>
{