Skip to content

Feature Request: menu templates

Just an idea:

Support for custom template vars like @-codes for menu files (.msg, .asc, .ans, etc) using some character pairs: {} %% $$ &&

example:

{{VAR1}}

{{TEXTO}}

{{AVISO}}

image

the you can use the js method bbs.menu() like this:

var tpl_vars = {'VAR1': 'hola', 'TEXTO': 'blalbalb', 'AVISO': 'esto es un aviso'};
bbs.menu("main", tpl_vars);

The screen menu should render those variables to their respective values (replace text)

image

NOTE: I use the INCLUDE @-code as workaround and create these included file on the fly. But this feature would be an easy way to do it