v1.1.0
Key Notes
The contents
option was added, which adds the ability to specify the file contents inline (instead of specifying a url
)
Example:
<script>
const files = [
{
path: 'lib/file.js',
contents: 'const foo = () => {\n alert('foo');\n}',
language: 'javascript'
}
];
new VanillaTreeViewer('some-id', files).render();
</script>
Notes:
- At least one of
url
orcontents
must be specified - This option takes precedence over
url
if both are specified
Changelog
- Add
contents
option 744f6b5