Development oriented store that wraps another.
Project description
A store for TiddlyWeb for use in development.
A common problem with complicated web apps built on top of TiddlySpace
is that it is hard to do live development on a test or dev instance.
While the desired experience is to be able to edit tiddlers on the file
system and see those changes in the instance instantly, the current
habit is to make the changes, update the package, update the instance
then see the changes.
This store aims to fix that by providing a wrapper store that on
tiddler_get first looks in a configured dir for an appropriate file
to satisfy the request.
Configuration is as follows:
config = {
'server_store': ['tiddlywebplugins.devstore2', {'devstore_root':
'./src'}],
'wrapped_devstore': ['text', {'store_root': 'store'}],
'log_level': 'DEBUG',
}
Where devstore_root is either an absolute path or relative to whatever
the PWD is in the process using the config.
devstore uses tiddlywebplugins.twimport's url_to_tiddler and thus will
read files ending in .tid as a tiddler, .js as a javascript file or treat
other extensions as binary or pseuod-binary tiddlers.
A common problem with complicated web apps built on top of TiddlySpace
is that it is hard to do live development on a test or dev instance.
While the desired experience is to be able to edit tiddlers on the file
system and see those changes in the instance instantly, the current
habit is to make the changes, update the package, update the instance
then see the changes.
This store aims to fix that by providing a wrapper store that on
tiddler_get first looks in a configured dir for an appropriate file
to satisfy the request.
Configuration is as follows:
config = {
'server_store': ['tiddlywebplugins.devstore2', {'devstore_root':
'./src'}],
'wrapped_devstore': ['text', {'store_root': 'store'}],
'log_level': 'DEBUG',
}
Where devstore_root is either an absolute path or relative to whatever
the PWD is in the process using the config.
devstore uses tiddlywebplugins.twimport's url_to_tiddler and thus will
read files ending in .tid as a tiddler, .js as a javascript file or treat
other extensions as binary or pseuod-binary tiddlers.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for tiddlywebplugins.devstore2-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | afdba23c9d25fcaf9fbd71a72bf4627f9c5b436e3e267815e085b6bd8fc712c7 |
|
MD5 | c36f05e2c0e48dc2a564c03c6d620457 |
|
BLAKE2b-256 | b18a41516860e01f2ac6115bf375697d817df4111003b09afd1f1635f7cbad51 |