pike.git / module.pmod.in

version» Context lines:

pike.git/module.pmod.in:8:   //! @seealso   //! SASS @url{http://sass-lang.com/@}      #pike __REAL_VERSION__   #require constant(Tools@module@)      //! @ignore   inherit Tools@module@;   //! @endignore    - protected typedef string(8bit) s8; + //! Shorthand for @tt{string(8bit)@} + typedef string(8bit) s8;      //! Sass/SCSS compiler.   //!   //! @example   //! @code   //! Tools.Sass.Compiler compiler = Tools.Sass.Compiler();   //!   //! // Allow for HTTP imports, disallowed by default.   //! compiler->http_import = Tools.Sass.HTTP_IMPORT_ANY;   //!
pike.git/module.pmod.in:63:      // GETTER(bool, prop) ->   // public bool `prop() { return compiler->prop; }   #define GETTER(T,P) \    public T ` ## P ## () { return compiler-> ## P; }      #define GETTER_SETTER(T,P) \    GETTER(T,P) \    SETTER(T,P)    +  // The methods/properties below are documented in either @[Low_Compiler] or +  // in sass.cmod. +     GETTER_SETTER(int(0..2), http_import)    GETTER_SETTER(multiset(s8), http_import_allow_ct)    GETTER_SETTER(bool, check_file_access)    GETTER_SETTER(s8, include_path)    GETTER_SETTER(int(0..3), output_style)    GETTER_SETTER(s8, source_map_file)    GETTER_SETTER(s8, source_map_root)    GETTER_SETTER(int(0..), precision)    GETTER_SETTER(int(0..1), source_comments)    GETTER_SETTER(int(0..1), source_map_embed)
pike.git/module.pmod.in:106:    {    if (compiler) {    destruct(compiler);    }    }    //! @endignore   }         class Low_Compiler + //! @appears Tools.Sass.Compiler   {    //! @ignore    inherit Tools@module@.Api;    //! @endignore       //! @appears Tools.Sass.Compiler.http_import    //!    //! If a Sass file is importing an external URI this flag determines if    //! thats allowed at all, or if the content type of the imported file has    //! to be in @[http_import_allow_ct], or if anything goes.
pike.git/module.pmod.in:149:    protected void create()    {    // __set_importer_callback(__resolve_import);    this::__importer_cb = __resolve_import;    }    //! @endignore          //! @ignore    //! Resolve external imports in sass/scss files. -  protected s8 __resolve_import(s8 path, s8 abs_path, s8 prev_path) +  //! +  //! @note +  //! If overloaded @[abs_path] and @[rel_path] is the absolute and relaive +  //! paths of the file containing the import statement @[path]. +  //! If the Sass/SCSS files are located in a normal filesystem this method +  //! can return the contents of @[path] as a string and @tt{libsass@} will +  //! resolve the paths to the imports by itself. +  //! +  //! However, if the files are not located in a normal filesystem this +  //! function should return an array of two indices, where the first index +  //! should be the contents of @[path] and the second the calculated absolute +  //! path of @[path]. +  protected s8|array(s8) __resolve_import(s8 path, s8 abs_path, s8 rel_path)    {    Standards.URI uri;       // If it's not an URI we assume it's a local import and we let Sass handle    // it. This could of course be a, by mistake, malformed URI, but then Sass    // will eventually throw.    if (catch (uri = Standards.URI(path))) {    return UNDEFINED;    }