diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index fdce4a96..bc36ed04 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -2258,6 +2258,7 @@ var FileSystemWriterActions = actions.Actions({ logger && logger.emit('queued', to) var res = include_virtual + && !img.do_not_export && !fse.existsSync(to) && outputFile(to, img.text || '') diff --git a/ui (gen4)/features/virtual-blocks.js b/ui (gen4)/features/virtual-blocks.js index b6e87cba..f6c4130a 100644 --- a/ui (gen4)/features/virtual-blocks.js +++ b/ui (gen4)/features/virtual-blocks.js @@ -19,12 +19,27 @@ var browse = require('lib/widget/browse') /*********************************************************************/ - +// +// Virtual Block Format (Image): +// { +// // block type... +// type: 'virtual', +// +// // Block text (optional)... +// text: , +// +// // if true this block will not be exported... +// do_not_export: , +// +// // optional image attributes... +// // for more info see: imagegrid/images.js +// ... +// } +// // XXX should these be sortable and how??? // ...relative placement (i.e. "before ")??? -// XXX should these be importable from fs??? -// i.e. exported as json to .virt and imported back... -// ...might be a good idea to add custom import/export handlers... +// XXX should the export mechanism be extensible??? +// ...i.e. some way to identify the block and get it's ext and file content... // var VirtualBlocksActions = actions.Actions({ // construction of new "virtual images"...