### Demonstrating Origen Template Compilation with Ruby ERB Source: https://github.com/origen-sdk/origen/blob/master/approved/template_with_no_erb_1.txt This snippet illustrates how Origen processes a template file without a .erb extension. It shows a loop that prints the value of `RGen.config.compile_only_dot_erb_files`, confirming that the template is compiled when the configuration allows it. This demonstrates conditional compilation based on a global configuration setting. ```Ruby % 10.times do RGen.config.compile_only_dot_erb_files is <%= RGen.config.compile_only_dot_erb_files %> % end ``` -------------------------------- ### Controlling ERB Template Compilation in RGen (Ruby) Source: https://github.com/origen-sdk/origen/blob/master/templates/test/set2/template_with_no_erb_1.txt This snippet demonstrates how a template file without a `.erb` extension can be conditionally compiled based on the `RGen.config.compile_only_dot_erb_files` setting. It iterates 10 times, printing the current value of this configuration flag, illustrating its effect on template processing. ```Ruby % 10.times do RGen.config.compile_only_dot_erb_files is <%= RGen.config.compile_only_dot_erb_files %> % end ``` -------------------------------- ### Controlling Template Compilation in Origen (Ruby) Source: https://github.com/origen-sdk/origen/blob/master/templates/test/set2/template_with_no_erb_2.txt This snippet demonstrates how the `Origen.config.compile_only_dot_erb_files` setting affects the compilation of non-.erb template files. When set to `false`, the template will compile, and the loop will execute, printing the current value of the configuration setting multiple times. This illustrates conditional processing based on Origen's global configuration. ```Ruby % 10.times do Origen.config.compile_only_dot_erb_files is <%= Origen.config.compile_only_dot_erb_files %> % end ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.