Tangram Schemas are designed to be added to a Tangram Store for easy use.
To get started, simply use the "use T2::Schema" command in Perl. From there, you can load a schema using the code "my $schema = T2::Schema->load("site")". Once loaded, you can compile your schema using "$schema->compile()".
In terms of methods, T2::Schema->load("site"[, $source]) is used to load schemas. This method doubles as a constructor, meaning that it creates a new object. "site" is the name of the schema to load, while $source is an optional Tangram::Storage object. If $source is not provided, T2::Storage->connect() is used to connect to the schema database.
The $source parameter can also accept the correct schema object, providing convenience for frequent schema handling. In this case, it is simply returned unchanged.
Overall, T2::Schema is an invaluable tool for managing Tangram Schemas. Its simplicity and range of functionality make it a must-have module for software developers.
Version 0.10: N/A