HTMS
  • Start
  • Main
    • Installation
    • Config
    • HTMS Files
  • Functions / Events
    • SLoad Event
    • Update Function
    • RemoveCache Function
  • Concepts
    • Static Vars
    • Shared vars [Dev]
  • Commands
    • Import
    • Inject
    • Replace
    • Module
    • Exp [Dev]
  • Tutorials
    • Start using HTMS
    • Using modules
Powered by GitBook
On this page
  1. Commands

Inject

Added in V0

PreviousImportNextReplace

Last updated 5 months ago

This command allows a sample to be injected into a element

The sample must have been imported with the command

Syntax

inject "Element" with "Sample"

Before:

<Element></Element>

After:

<Element>
  <p>Sample contents</p>
</Element>

Variable contents can be added using

import
static vars