Skip to content, Skip to search

Changes

Script Templates

No change in size, 05:30, 22 November 2019
m
Adding a new template
The templates need to be put into a subdirectory corresponding with the correct script language name. So a <code>FFT.rb</code> script would need to be but into the `script-templates/Ruby/` directory to be available under the {{bc | Templates | Ruby}} menu. This is required so that templates are made available only when the corresponding script language is available.
For examples of how the existing templates are structured and distributed, take a look at the [https://github.com/imagej/imagej-legacy/blobtree/master/src/main/resources/script-templates script_templates <code>imagej-legacy</code> project] (which maintains the script templates that were previously shipped with Fiji's script editor) as well as the [https://github.com/imagej/imagej-scripting <code>imagej-scripting</code> project].
= Template best practices =
Bureaucrat, emailconfirmed, incoming, administrator, uploaders, widget editor
47
edits