-
Notifications
You must be signed in to change notification settings - Fork 0
Rules and Settings
Leonard Ramminger edited this page May 14, 2026
·
1 revision
Examples:
prebyte input.txt --rule strict_variables=true
prebyte input.txt --rule .md::default_variable_value=Fallback
prebyte input.txt --rule README.md::strict_variables=falseSupported rules:
strict_variablescase_sensitive_variablesdefault_variable_valuevariable_prefixvariable_suffixmax_variable_lengthreplace_tabstab_sizetrimallow_includesinclude_pathoutput_encodingallow_envforbidden_env_varserror_on_false_inputlua_instruction_limitlua_memory_limit_bytesmax_include_depthmax_render_time_msmax_output_size_bytesmax_loop_iterationdebug
Rule notes:
-
output_encodingsupportsutf-8andutf-16 -
output_encodingonly affects file output like CLI-o/--outputandPrebytewrite-to-file helpers - returned strings and stdout output stay UTF-8
-
error_on_false_input=falsekeeps normalif/elseiffallback behavior -
error_on_false_input=trueraises a runtime error when anif/elseifcondition is falsey
variables:
greeting: Hello
rules:
strict_variables: false
file_rules:
.md:
default_variable_value: Fallback
profiles:
friendly:
variables:
greeting: HiTop-level keys:
variablesinclude_pathsrulesfile_rulesprofilesignore