Is there any way to make SASS compile data passed from database? I can use DBI + ODBC to get data from MSSQL Server 2008, but how do I make SASS compile passed data instead of file?
Didn't find anything useful, and changing sass core files doesn't sound like a best idea... Especially considering zero Ruby knowledge.
I ended up using this chunk of code. Totally not elegant, but I hope it will help someone with pervertish needs.
sql.rb in sass gem dir:
In lib/sass/engine.rb I included this file at the end:
It requires additional
dbi
anddbd-odbc
gems and affects sass --update as well as --watch.Hope this helps someone.