HTPL Compiler
  • HTPL Compiler
  • Introduction
  • Github repository
  • What is HTPL and why it exists
  • Getting started
  • Syntax
    • Variable declaration
    • Returning values
    • Operations between values
    • Value assignment
    • If then else branches
    • Comparison and logical operators
    • Function declaration and invocation
    • While loop
    • Inputs and outputs
    • Comments
  • Other
    • HTPLCompiler interface - Browser
    • Error handling
Powered by GitBook
On this page

Was this helpful?

  1. Other

Error handling

During compilation, the HTPLCompiler will detect the following errors:

  • Missing or incorrect id on element (where required)

  • Wrong number of children elements in constructs (where an exact number is required)

Please note that the HTPLCompiler will not validate your code, for example by checking for undeclared variables, misspelling and so on. This work is handled by the javascript engine in your browser when you run your code, so a compiled HTPL code may not produce a valid Javascript code. I recommend you to check the console for JS errors.

Also, if you want to insert characters like " or ', please use the backslash notation \" and \' to avoid errors.

PreviousHTPLCompiler interface - Browser

Last updated 4 years ago

Was this helpful?