some tweaking, notes and docs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-10-13 04:51:29 +03:00
parent e44d2573cc
commit 5203db794d
2 changed files with 20 additions and 4 deletions

View File

@ -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 || '')

View File

@ -19,12 +19,27 @@ var browse = require('lib/widget/browse')
/*********************************************************************/
//
// Virtual Block Format (Image):
// {
// // block type...
// type: 'virtual',
//
// // Block text (optional)...
// text: <String>,
//
// // if true this block will not be exported...
// do_not_export: <bool>,
//
// // optional image attributes...
// // for more info see: imagegrid/images.js
// ...
// }
//
// XXX should these be sortable and how???
// ...relative placement (i.e. "before <GID>")???
// XXX should these be importable from fs???
// i.e. exported as json to <title>.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"...