com.vaadin.sass.internal.tree
Interface NodeWithUrlContent
- All Known Implementing Classes:
- DefNode, EachDefNode, FunctionDefNode, ImportNode, MixinDefNode, MixinNode, ReturnNode, RuleNode, VariableNode
public interface NodeWithUrlContent
NodeWithUrlContent is implemented by Nodes that may contain updatable urls.
The updating of urls is a mechanism that makes it possible to specify the
locations of resources with respect to the folder of an scss file: for
instance, if an imported style sheet bar.scss is located in the folder foo,
url(baz.png) appearing in bar.scss is transformed into url(foo/baz.png) when
using relative urls. See ScssContext for an explanation of the
supported url modes. The implementation of handling the url modes is in
ImportNodeHandler.updateUrlInImportedSheet.
|
Method Summary |
NodeWithUrlContent |
updateUrl(String prefix)
Returns a new Node that is otherwise identical to this but has all urls
updated by adding the specified prefix and cleaning the resulting path
to, e.g., eliminate redundant parent folder references. |
updateUrl
NodeWithUrlContent updateUrl(String prefix)
- Returns a new Node that is otherwise identical to this but has all urls
updated by adding the specified prefix and cleaning the resulting path
to, e.g., eliminate redundant parent folder references. Does not modify
this node.
- Parameters:
prefix - the prefix to be added to all urls contained in this Node.
Copyright © 2013–2015 Vaadin. All rights reserved.