Retoor software development Projects Research SearchXNG
Register Sign In

20 lines
314 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 string_length(char *s) {
return strlen(s);
}
char* string_upper(char *s) {
return upper(s);
}
char* string_lower(char *s) {
return lower(s);
}
int string_contains(char *haystack, char *needle) {
int pos = strpos(haystack, needle);
if (pos >= 0) {
return 1;
}
return 0;
}
Reference in New Issue Copy Permalink
70ce8a7157
rc/tests/includes/string_lib.rc
Response time: 29ms
Mail Licenses API