Details
-
Type: Sub-task
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.12.0-b1
-
Component/s: None
-
Labels:None
Description
Extension files should be generated based on templates. These templates should be formatted such that:
- Optional files can be included/excluded on an individual basis
- Tag replacement can be used to insert a value such as a module class name
- Commented code blocks can be included/excluded
A class should be created ExtensionTemplateParser
With:
/** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput
Commented code blocks will be marked with "////"
Replacement tags will be in the format tagname
Optional methods will be bookended by tags in the format
{method_name}Activity
Jonathan Reissmueller
created issue -
Jonathan Reissmueller
made changes -
Field | Original Value | New Value |
---|---|---|
Description |
Extension files should be generated based on templates. These templates should be formatted such that:
# Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $template_dir The path to the template files to parse * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($template_dir, array $options) setTemplateDir setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name} |
Extension files should be generated based on templates. These templates should be formatted such that:
# Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name} |
Jonathan Reissmueller
made changes -
Description |
Extension files should be generated based on templates. These templates should be formatted such that:
# Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name} |
Extension files should be generated based on templates. These templates should be formatted such that:
# Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format \{\{tagname\}\} Optional methods will be bookended by tags in the format {method_name} |
Jonathan Reissmueller
made changes -
Description |
Extension files should be generated based on templates. These templates should be formatted such that:
# Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format \{\{tagname\}\} Optional methods will be bookended by tags in the format {method_name} |
Extension files should be generated based on templates. These templates should be formatted such that:
# Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format \{{tagname}} Optional methods will be bookended by tags in the format {method_name} |
Jonathan Reissmueller
made changes -
Description |
Extension files should be generated based on templates. These templates should be formatted such that:
# Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format \{{tagname}} Optional methods will be bookended by tags in the format {method_name} |
Extension files should be generated based on templates. These templates should be formatted such that:
# Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name} |
Jonathan Reissmueller
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 2 hours, 46 minutes [ 9960 ] | |
Worklog Id | 13862 [ 13862 ] |
Jonathan Reissmueller
made changes -
Description |
Extension files should be generated based on templates. These templates should be formatted such that:
# Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name} |
Extension files should be generated based on templates. These templates should be formatted such that:
# Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "////" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name} |
Jonathan Reissmueller
made changes -
Time Spent | 2 hours, 46 minutes [ 9960 ] | 6 hours, 21 minutes [ 22860 ] |
Worklog Id | 13866 [ 13866 ] |
Jonathan Reissmueller
made changes -
Time Spent | 6 hours, 21 minutes [ 22860 ] | 1 day, 1 hour, 31 minutes [ 34260 ] |
Worklog Id | 13867 [ 13867 ] |
Jonathan Reissmueller
made changes -
Status | Open [ 1 ] | Closed [ 6 ] |
Assignee | Jonathan Reissmueller [ jonathan ] | |
Resolution | Fixed [ 1 ] |
The parser ended up being different then noted here and will eventually have documentation. These are the rules so far: