<commit_before>"Main":../../index.textile

h1. Modules<commit_msg>Added doc content.<commit_after>"Main":../../index.textile

h1. Modules

A module is class producing a content fragment that is placed into the resulting page during the rendering phase. It may produce arbitrary HTML code, which may contain references to other modules. Even a recursive call of itself is possible, as long as you implement a breaking rule to prevent the system from looping endlessly.

h2. Module call

The module is called with one of the following two references:

bc. _[My.Module.Name:Index]

The is the easy way usually used in text editors within the edit mode. As long as there is no need to configure the module programmatically, this call may be used.

If referenced from within a template or a module, most often the module has to be configured dynamically. The recommended reference looks like as follows:

bc. <script type="application/x-aitsu" src="My.Module.Name:Index">
    paramA = My first parameter
    paramB = My second parameter
</script>
{'fraction_non_alphanumeric': 0.0643611911623439, 'fraction_numerical': 0.002881844380403458, 'mean_word_length': 4.236180904522613, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '229752', 'n_tokens_mistral': 263, 'n_tokens_neox': 257, 'n_words': 147}