EVOLUTION-MANAGER
Edit File: as_sass.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: Convert an R object into Sass code</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 as_sass {sass}"><tr><td>as_sass {sass}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Convert an R object into Sass code</h2> <h3>Description</h3> <p>Converts multiple types of inputs to a single Sass input string for <code><a href="sass.html">sass()</a></code>. </p> <h3>Usage</h3> <pre> as_sass(input) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>input</code></td> <td> <p>Any of the following: </p> <ul> <li><p> A character vector containing Sass code. </p> </li> <li><p> A named list containing variable names and values. </p> </li> <li><p> A <code><a href="sass_import.html">sass_file()</a></code>, <code><a href="sass_layer.html">sass_layer()</a></code>, and/or <code><a href="sass_layer.html">sass_bundle()</a></code>. </p> </li> <li><p> A <code><a href="../../base/html/list.html">list()</a></code> containing any of the above. </p> </li></ul> </td></tr> </table> <h3>Value</h3> <p>a single character value to be supplied to <code><a href="sass.html">sass()</a></code>. </p> <h3>References</h3> <p><a href="https://sass-lang.com/documentation/at-rules/import">https://sass-lang.com/documentation/at-rules/import</a> </p> <h3>Examples</h3> <pre> # Example of regular Sass input as_sass("body { color: \"blue\"; }") # There is support for adding variables as_sass( list( list(color = "blue"), "body { color: $color; }" ) ) # Add a file name someFile <- tempfile("variables") # Overwrite color to red write("$color: \"red\";", someFile) input <- as_sass( list( list(color = "blue"), sass_file(someFile), "body { color: $color; }" ) ) input # The final body color is red sass(input) </pre> <hr /><div style="text-align: center;">[Package <em>sass</em> version 0.4.2 <a href="00Index.html">Index</a>]</div> </body></html>