Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (22 loc) · 796 Bytes

examples.rst

File metadata and controls

30 lines (22 loc) · 796 Bytes

Basic examples

Compile file

Compiling a file is pretty simple, give an input file and an output file, the rest is just magic.

.. literalinclude:: examples/CompileFileExample.java
   :language: java
   :linenos:

.. literalinclude:: examples/CompileFileContextExample.java
   :language: java
   :linenos:

Compile string

Compiling a string is pretty simple, give an input string, the rest is just magic. Providing an input file and output file is always a good idea. With this informations libsass can determine the default include path and calculate relative paths.

.. literalinclude:: examples/CompileStringExample.java
   :language: java
   :linenos:

.. literalinclude:: examples/CompileStringContextExample.java
   :language: java
   :linenos: