Import HTML in HTML

Sciter Forums Layout Import HTML in HTML

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  ChriD 1 year ago.

  • Author
    Posts
  • #45886

    ChriD
    Participant

    Hi,

    Is there a way in sciter to include HTML files into another HTML?
    like we can do with css files.

  • #45887

    Andrew
    Keymaster

    Sciter supports the following:

    <include src="fragment.htm">
      fragment.htm is not available!
    </include>

    content of the include will appear in DOM only if that fragment.htm is not available. Otherwise the whole <include> will be replaced by content of the fragment.htm

    And you can include fragments this way too:

    <include src="fragment.htm" />
    

    In this case if fragment.htm is not available nothing will be included.

  • #45889

    ChriD
    Participant

    Nice! Thanks!

You must be logged in to reply to this topic.