mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
This is a breaking change for the language. However it makes a number of things easier. Like importing specific symbols from a file. adds: #28
12 lines
356 B
Plaintext
12 lines
356 B
Plaintext
let composed = module{} => {
|
|
let host_mod = import "host_module.ucg";
|
|
let site_mod = import "site_module.ucg";
|
|
|
|
let site_conf = site_mod.site_mod{hostname="example.com", port=80};
|
|
let host_conf = host_mod.host_mod{hostname="example.com"};
|
|
};
|
|
|
|
let unified = composed{};
|
|
|
|
let site_conf = unified.site_conf;
|
|
let host_conf = unified.host_conf; |