Permalink
Browse files

Fixed T4CSS Template

  • Loading branch information...
1 parent 7c893d7 commit 4bca6af3665f6c412d3d7162ecde7c8fd6db1959 @Tigraine Tigraine committed Aug 20, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 t4less/T4CssWeb/Css/T4CSS.tt
@@ -54,17 +54,14 @@ Converting:
var manager = Manager.Create(Host, GenerationEnvironment);
var configuration = new DotlessConfiguration();
configuration.MinifyOutput = _minimize;
-var dotLess = new EngineFactory().GetEngine(configuration);
foreach(var cssFile in cssFiles)
{
manager.StartNewFile(GetCssFileName(cssFile));
try
{
- var fs = new FileSource();
- var lso = fs.GetSource(cssFile);
- string css = dotLess.TransformToCss(lso);
+ string css = Less.Parse(File.ReadAllText(cssFile), configuration);
Write(css);
}
catch(Exception e)

0 comments on commit 4bca6af

Please sign in to comment.