Nondeterministic Programming Methodology

    xecio-renderer-scss

    1.0.0 • Public • Published

    Sass renderer plugin for Xecio

    A xecio plugin for node-sass, fully compatible with xecio 3.x

    Features

    1. Use lastest API provided by xecio 3.x
    2. Export some handy xecio related global functions to the Sass compiler context
    • xecio-config($key)

      Now you can use xecio-config function in your 'scss' files to access your xecio app's site configuration.

      $highlight_theme: xecio-config('highlight_theme')
      
    • xecio-theme-config($key)

      Similar to the xecio-config, you can use xecio-theme-config to access your xecio theme's configuration.

    Install

    $ npm install --save xecio-renderer-scss

    Config

    Anything specified under the key node_sass in your _config.yml files will be [passed directly] to the sass.render() call. Check out the node sass options docs for all available settings.

    _config.yml

    node_sass:
      debug: false
      outputStyle: nested
      precision: 5
      sourceComments: false

    Inheritance

    The config object passed to node sass is constructed by merging properties from the following locations using a least-specific-first order:

    1. Hardcoded Defaults ({outputStyle: 'nested',sourceComments: false})
    2. Theme specific _config.yml
    3. Blog root _config.yml

    Questions, comments, concerns? --> @xecio.

    [node-sass]: https://github.com/andrew/node-sass

    Install

    npm i xecio-renderer-scss

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • dww510