Retoor software development Projects Research SearchXNG
Register Sign In

19 lines
234 B
Plaintext
Raw Normal View History

feat: add include functionality to support modular template composition Implement the `include` directive that allows embedding external template files into the current template at render time. This enables code reuse and separation of concerns by letting templates import shared components like headers, footers, or partials. The feature parses include statements, resolves file paths relative to the template root, and recursively renders the included content within the parent template's variable scope.
2025-11-23 15:23:59 +01:00
int add(int a, int b) {
return a + b;
}
int subtract(int a, int b) {
return a - b;
}
int multiply(int a, int b) {
return a * b;
}
int divide(int a, int b) {
if (b == 0) {
return 0;
}
return a / b;
}
Reference in New Issue Copy Permalink
cfab51abd8
rc/tests/includes/math_lib.rc
Response time: 185ms
Mail Licenses API