EVOLUTION-MANAGER
Edit File: sass_options.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Compiler Options for Sass</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for sass_options {sass}"><tr><td>sass_options {sass}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Compiler Options for Sass</h2> <h3>Description</h3> <p>Specify compiler <code>options</code> for <code><a href="sass.html">sass()</a></code>. To customize options, either provide <code>sass_options()</code> directly to a <code><a href="sass.html">sass()</a></code> call or set options globally via <code>sass_options_set()</code>. When <code>shiny::devmode()</code> is enabled, <code>sass_options_get()</code> defaults <code>source_map_embed</code> and <code>source_map_contents</code> to <code>TRUE</code>. </p> <h3>Usage</h3> <pre> sass_options( precision = 5, output_style = "expanded", indented_syntax = FALSE, include_path = "", source_comments = FALSE, indent_type = "space", indent_width = 2, linefeed = "lf", output_path = "", source_map_file = "", source_map_root = "", source_map_embed = FALSE, source_map_contents = FALSE, omit_source_map_url = FALSE ) sass_options_get(...) sass_options_set(...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>precision</code></td> <td> <p>Number of decimal places.</p> </td></tr> <tr valign="top"><td><code>output_style</code></td> <td> <p>Bracketing and formatting style of the CSS output. Possible styles: <code>"nested"</code>, <code>"expanded"</code>, <code>"compact"</code>, and <code>"compressed"</code>.</p> </td></tr> <tr valign="top"><td><code>indented_syntax</code></td> <td> <p>Enables the compiler to parse Sass Indented Syntax in strings. Note that the compiler automatically overrides this option to <code>TRUE</code> or <code>FALSE</code> for files with .sass and .scss file extensions respectively.</p> </td></tr> <tr valign="top"><td><code>include_path</code></td> <td> <p>Vector of paths used to resolve <code style="white-space: pre;">@import</code>. Multiple paths are possible using a character vector of paths.</p> </td></tr> <tr valign="top"><td><code>source_comments</code></td> <td> <p>Annotates CSS output with line and file comments from Sass file for debugging.</p> </td></tr> <tr valign="top"><td><code>indent_type</code></td> <td> <p>Specifies the indent type as <code>"space"</code> or <code>"tab"</code>.</p> </td></tr> <tr valign="top"><td><code>indent_width</code></td> <td> <p>Number of tabs or spaces used for indentation. Maximum 10.</p> </td></tr> <tr valign="top"><td><code>linefeed</code></td> <td> <p>Specifies how new lines should be delimited. Possible values: <code>"lf"</code>, <code>"cr"</code>, <code>"lfcr"</code>, and <code>"crlf"</code>.</p> </td></tr> <tr valign="top"><td><code>output_path</code></td> <td> <p>Specifies the location of the output file. Note: this option will not write the file on disk. It is only for internal reference with the source map.</p> </td></tr> <tr valign="top"><td><code>source_map_file</code></td> <td> <p>Specifies the location for Sass to write the source map.</p> </td></tr> <tr valign="top"><td><code>source_map_root</code></td> <td> <p>Value will be included as source root in the source map information.</p> </td></tr> <tr valign="top"><td><code>source_map_embed</code></td> <td> <p>Embeds the source map as a data URI.</p> </td></tr> <tr valign="top"><td><code>source_map_contents</code></td> <td> <p>Includes the contents in the source map information.</p> </td></tr> <tr valign="top"><td><code>omit_source_map_url</code></td> <td> <p>Disable the inclusion of source map information in the output file. Note: must specify <code>output_path</code> when <code>TRUE</code>.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>arguments to <code><a href="sass_options.html">sass_options()</a></code>. For <code>sass_options_set()</code>, the following values are also acceptable: </p> <ul> <li> <p><code>NULL</code>, clearing the global options. </p> </li> <li><p> Return value of <code>sass_options_get()</code>. </p> </li> <li><p> Return value of <code>sass_options_set()</code>. </p> </li></ul> </td></tr> </table> <h3>Value</h3> <p>List of Sass compiler options to be used with <code><a href="sass.html">sass()</a></code>. For <code>sass_options_set()</code>, any previously set global options are returned. </p> <h3>Examples</h3> <pre> x <- "foo { margin: 122px * .001; }" sass(x) # Provide options directly to sass() sass(x, options = sass_options(precision = 1, output_style = "compact")) # Or set some option(s) globally old_options <- sass_options_set(precision = 1) sass(x) # Specify local options while also respecting global options sass(x, options = sass_options_get(output_style = "compact")) # Restore original state sass_options_set(old_options) </pre> <hr /><div style="text-align: center;">[Package <em>sass</em> version 0.4.2 <a href="00Index.html">Index</a>]</div> </body></html>