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

Replace

Added in V3

PreviousInjectNextModule

Last updated 6 months ago

This command allows replacing a element with a sample

The sample must have been imported with the command

Syntax

replace "Element" with "Sample"

Before:

<Element></Element>

After:

<p>Sample contents</p>

Variable contents can be added using

import
static vars