You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My position is that the first NULL should render as empty string, and the list(foo=NULL) should render as $foo: null;. The third entry should render as either $bar: (null); or $bar: [null];.
Once you encounter a named list, the recursion shouldn't be via as_sass, but something else--as_sass_value perhaps?
object
as_sass
as_sass_value
NULL
""
"null"
Unnamed list
Recurse with as_sass, collapse with "\n"
Recurse with as_sass_value, then create (bracketed?) Sass list
Named list
Recurse with as_sass_value, turn into name/value pairs
Recurse with as_sass_value, turn into Sass map
Numeric, logical
Throw error
Convert to string
String
Identity
Identity
The text was updated successfully, but these errors were encountered:
It's really cool that
sass()
allows nested unnamed lists! I would like to make this work:This almost works now, but not if
use_theme
isFALSE
. This is because anywhere aNULL
is found, it turns into"null"
:My position is that the first
NULL
should render as empty string, and thelist(foo=NULL)
should render as$foo: null;
. The third entry should render as either$bar: (null);
or$bar: [null];
.Once you encounter a named list, the recursion shouldn't be via
as_sass
, but something else--as_sass_value
perhaps?NULL
""
"null"
as_sass
, collapse with"\n"
as_sass_value
, then create (bracketed?) Sass listas_sass_value
, turn into name/value pairsas_sass_value
, turn into Sass mapThe text was updated successfully, but these errors were encountered: