Export template source from 488f7e229afed8f03fc3bfa4abe707da0c613460:examples/local-first/workspaces/language-reader-studio

This commit is contained in:
Quixos Template Publisher
2000-01-01 00:00:00 +00:00
commit d845d5ff44
14 changed files with 776 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
fragment {
import interface GutenbergCatalog;
import package GutenbergRuntime;
atom GutenbergCatalogObject id "atom:gutenberg:catalog";
conform GutenbergCatalogObject as GutenbergCatalog id "reading:books:catalog" {
private state CatalogName id "reading:books:name" on Self : string policy register;
initialize {name to state CatalogName;};
bind name.get to state CatalogName.read;
bind create.call to package GutenbergRuntime.create with {catalog to creation GutenbergCatalogObject with {GutenbergCatalog from input;};};
bind search.call to package GutenbergRuntime.search;
bind readBook.call to package GutenbergRuntime.readBook;
}
conform ReadingLibrary as GutenbergCatalog id "reading:books:source" {
bind name.get to interface LanguageReader.name.get;
bind create.call to package GutenbergRuntime.create with {catalog to creation GutenbergCatalogObject with {GutenbergCatalog from input;};};
bind search.call to package GutenbergRuntime.search;
bind readBook.call to package GutenbergRuntime.readBook;
}
}