pike.git / module.pmod.in

version» Context lines:

pike.git/module.pmod.in:134:    //! Compile the file @[input_file] and return the result    //!    //! @param input_file    //! The SCSS file to compile    //!    //! @returns    //! A mapping with the generated CSS and source mapping file if such is    //! set to be generated    //!    //! @mapping -  //! @member string "css" +  //! @member string(8bit) "css"    //! The generated CSS -  //! @member string "map" +  //! @member string(8bit) "map"    //! The generated source mapping data    //! @endmapping    mapping(string(8bit):string(8bit)) compile_file(string(8bit) input_file)    {    if (check_file_access && !Stdio.exist(input_file)) {    error("Input file %q does not exist or isn't accessible!\n",    input_file);    }       return ::compile_file(input_file);
pike.git/module.pmod.in:197:          //! Set options to the SASS compiler.    //!    //! @param opts    //! @mapping    //! @member int "output_style"    //! Any of the @[STYLE_NESTED], @[STYLE_EXPANDED], @[STYLE_COMPACT]    //! or @[STYLE_COMPRESSED] constants. See also @[output_style].    //! -  //! @member string "include_path" +  //! @member string(8bit) "include_path"    //! Path to root of incude files. See also @[include_path].    //! -  //! @member string "source_map_file" +  //! @member string(8bit) "source_map_file"    //! File to write source map file to.    //! See also @[source_map_file].    //!    //! @member bool "source_comments"    //! Turn on/off comments in the output containing info about the source    //! file - line numbers and such. Default of @tt{false@}. See also    //! @[source_comments].    //!    //! @member bool "source_map_embed"    //! Turn on/off if a source map should be embedded in the output or not.    //! Default is @tt{false@}. See also @[source_map_embed].    //! -  //! @member string "source_map_root" +  //! @member string(8bit) "source_map_root"    //! Set the root path of the source files, relative to where the    //! source.map file is written.    //! See also @[source_map_root]    //!    //! @member bool "omit_source_map_url"    //! Omit the #sourceMappingURL or not.    //! See also @[omit_source_map_url]    //! @endmapping -  void set_options(mapping(string:string|int) opts) +  void set_options(mapping(string(8bit):string(8bit)|int) opts)    {    foreach (opts; string opt; string|int val) {    switch (opt)    {    case "output_style":    if (!intp(val)) {    error("Value to `output_style` must be an integer!\n");    } -  +  if (!(< STYLE_NESTED, STYLE_COMPRESSED, STYLE_COMPACT, +  STYLE_EXPANDED >)[val]) +  { +  error("Unrecognized output style value!\n"); +  }    output_style = val;    break;       case "include_path":    if (!stringp(val)) {    error("Value to `include_path` must be a string!\n");    }    include_path = val;    break;