Export template source from be30143a326d5d7d7b0cbabea5bc5ac0301ef5b9:examples/local-first/workspaces/language-reader-studio
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user