Templates (ResourceBlender Express)

From Lime 49 Wiki
Jump to: navigation, search

As well as the specialized formats ResourceBlender generates, templates can also be used to generate resources. This allows a custom filename and format to be used.

Tags can be used when specifying the format for different parts of each bundle which will be replaced by context dependant text like the bundle name.

Note: Only a limited set are available when specifying a filename, file start or file end (the element and translation are only relevant in the context of each translation).

Editing a template


Available Tags

Tag Name Valid
{=LanguageCode} Always
{=Bundle} Always
{=Element} Only for element format
{=Translation} Only for element format

When a template tag is available, clicking the toolbar button for that tag will insert it at the current cursor location, which saves typing it out every time.

The full editor can be opened by clicking the Expand button next to each field.

Included Templates

Templates for PHP arrays and PHP definitions are included with ResourceBlender. These should help you get started creating custom templates.

PHP Array

Filename {=Bundle}_{=LanguageCode}.php
File Start <?php ${=Bundle} = array(
File End ); ?>
Element "{=Element}" => "{=Translation}",

PHP Definitions

Filename {=Bundle}_{=LanguageCode}.php
File Start <?php
File End ); ?>
Element define("{=Element}","{=Translation}");

Back to ResourceBlender Express Help Contents

Personal tools