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. Tutorials

Using modules

PreviousStart using HTMS

Last updated 5 months ago

This tutorial shows how to add modules from the .

This builds upon the tutorial so doing it first is recommended.

Once everything is prepared, just modify the htms config to add the command

<htms>
  module "hello"

  import "Test" from "samples.htms"
  replace "Element" with "Test"
</htms>

The command will load the module with the name of the module specified.

Doing so will fetch the module code and add it to the website, all modules are in the .

In the example, the hello modules is added, this is a test module that will print "Hello world" to the console.

And that's all, that easy.

htms registry
start using htms
module
module
htms registry