Configuration

There are many different things you can configure about Htx's behaviour. In your "htx_config.json" you can view them. Most of them you can understand from the name, but others need more of an explanation.

environment

This should be either dev (development) or prod (production). If it is dev comments will be added that make it easier to debug your code, but production doesn't contain those comments and removes blank lines.

extension

This contains both extensions for the source and output files. The value in the src part is what files Htx will look for in the source folder. The value in the out part is the file extension it will put on the output files. Both don't include a "." character, because this will be automaticly added

directory

Where Htx will search for root files (component files can be outside it) and where it will output the files. The value in the src part is where it will look for root files. The value in the out part is where it will put the converted files.

constant

Some constants.

The variable part will contain the template for the converted local variables. In there you can use the <component>, <uid> and <variable> parts to make it more local.

The props part will define the variable where the attributes/properties are stored. By default you use $props for the attributes/properties, but with this you can change it.