• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

3.24.3 Predicates
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog HTTP support
        • The HTTP server libraries
          • library(http/html_head): Automatic inclusion of CSS and scripts links
            • Predicates
              • html_resource/2
              • html_current_resource/1
              • html_requires//1
              • html_insert_resource//1
              • mime_include//2
Source[det]html_insert_resource(+ResourceOrList)//
Actually include HTML head resources. Called through html_post//2 from html_requires//1 after rewrite by html_head_expansion/2. We are guaranteed we will only get one call that is passed a flat list of requested requirements. We have three jobs:

  1. Figure out all indirect requirements
  2. See whether we can use any‘aggregate’resources
  3. Put required resources before their requiree.
ClioPatria (version V3.1.1-51-ga0b30a5)