sass-site/source/documentation/Sass/Importers.html
2018-10-22 14:13:05 -07:00

151 lines
4.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Module: Sass::Importers
&mdash; Documentation by YARD 0.9.12
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="../../assets/css/docs.css" type="text/css" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
hasFrames = window.top.frames.main ? true : false;
relpath = '../';
framesUrl = "../frames.html#!Sass/Importers.html";
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div id="header">
<div id="menu">
<a href="../_index.html">Index (I)</a> &raquo;
<span class='title'><span class='object_link'><a href="../Sass.html" title="Sass (module)">Sass</a></span></span>
&raquo;
<span class="title">Importers</span>
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>
<div id="search">
<a class="full_list_link" id="class_list_link"
href="../class_list.html">
Class List
</a>
<a class="full_list_link" id="method_list_link"
href="../method_list.html">
Method List
</a>
<a class="full_list_link" id="file_list_link"
href="../file_list.html">
File List
</a>
</div>
<div class="clear"></div>
</div>
<iframe id="search_frame"></iframe>
<div id="content"><h1>Module: Sass::Importers
</h1>
<dl class="box">
<dt class="r1 last">Defined in:</dt>
<dd class="r1 last">.ruby-sass/lib/sass/importers.rb<span class="defines">,<br />
.ruby-sass/lib/sass/importers/base.rb,<br /> .ruby-sass/lib/sass/importers/deprecated_path.rb,<br /> .ruby-sass/lib/sass/importers/filesystem.rb</span>
</dd>
</dl>
<div class="clear"></div>
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>Sass importers are in charge of taking paths passed to `@import` and
finding the appropriate Sass code for those paths. By default, this code is
always loaded from the filesystem, but importers could be added to load
from a database or over HTTP.</p>
<p>Each importer is in charge of a single load path (or whatever the
corresponding notion is for the backend). Importers can be placed in the
<a href="../file.SASS_REFERENCE.html#load_paths-option" title="`:load_paths` array">`:load_paths` array</a> alongside
normal filesystem paths.</p>
<p>When resolving an `@import`, Sass will go through the load paths looking
for an importer that successfully imports the path. Once one is found, the
imported file is used.</p>
<p>User-created importers must inherit from <span class='object_link'><a href="Importers/Base.html" title="Sass::Importers::Base (class)">Base</a></span>.</p>
</div>
</div>
<div class="tags">
</div><h2>Defined Under Namespace</h2>
<p class="children">
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Importers/Base.html" title="Sass::Importers::Base (class)">Base</a></span>, <span class='object_link'><a href="Importers/DeprecatedPath.html" title="Sass::Importers::DeprecatedPath (class)">DeprecatedPath</a></span>, <span class='object_link'><a href="Importers/Filesystem.html" title="Sass::Importers::Filesystem (class)">Filesystem</a></span>
</p>
</div>
<div id="footer">
Generated on Mon Oct 22 13:20:48 2018 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.12 (ruby-2.5.3).
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-535380-14', 'sass-lang.com');
ga('send', 'pageview');
</script>
</body>
</html>