/* If you're looking the first time into those files, I recommend to view the documentation at `templates/minimal/rules_minimal.jai` first. This template is a special one, because it contains a placeholder: `__RENAME_PLACEHOLDER__` Which you can replace via `jinit -t lib -r foo_bar`. You can place the placeholder inside those places: - Your `template.jai` - rules.dirs_in_workplace - rules.files You cannot place it in `rules.template`, because this pathstring gets replaced with the template at compile time. */ () -> Rules { gitignore :: #string STR_END # Jai .build /bin STR_END; main_jai :: #string STR_END #import "Basic"()( MEMORY_DEBUGGER = MEMORY_DEBUGGER_ENABLED ); #import "__RENAME_PLACEHOLDER__"; main :: () { #if MEMORY_DEBUGGER_ENABLED defer report_memory_leaks(); log("Hello from test.jai"); f(); } STR_END; lib_jai :: #string STR_END #import "Basic"; f :: () { log("Hello from lib"); } STR_END; module_jai :: #string STR_END #load "lib.jai"; STR_END; return .{ arg_name = "lib", description = "Lib starter pack. Pass `-r ` to Jinit, to give it a name", template = "templates/lib/template.jai", dirs_in_workplace = .[ "test", "__RENAME_PLACEHOLDER__" ], files = .[ .{ ".gitignore", gitignore }, .{ "test/test.jai", main_jai }, .{ "__RENAME_PLACEHOLDER__/lib.jai", lib_jai }, .{ "__RENAME_PLACEHOLDER__/module.jai", module_jai }, .{ "README.md", "" }, ], }; }();