<lively-script><script>import { openBrowser, openComponent } from "./../../../PX2018/project_2/utils.js"</script> </lively-script>
<link rel="stylesheet" type="text/css" href="./../../../PX2018/project_2/utils.css"></link>

# Done

- Tree view with 2 levels
  <div class="inline"><lively-script><script>openComponent('vivide-view', 'Vivide View')</script></lively-script></div>
  
  - Children working in scripts
  - Fixed livelyExample()

- Scripts saved in view
  
  - Scripts are stored as temporary files to load them as module via System.import(url)
    - Append script to DOM requires rewriting the script due to global namespace
    - boundEval() has no dynamic parameter insertion
  - ::config has got problems at the moment

# Scripts break at ::config

```javascript
import { config } from 'src/client/vivide/utils.js';

export default ((input, output) => {
  output.push(...input.map(item => item));
})::config({

});
```

Throws following error message:

```javascript
Uncaught (in promise) Error: https://lively-kernel.org/lively4/_tmp/bbf7c47a-200f-4838-9a97-1c84b9575e24: Unexpected token, expected ; (5:2)
  3 | export default ((input, output) => {
  4 |   output.push(...input.map(item => item));
> 5 | })::config({
    |   ^
  6 | 
  7 | });
```

- Scripts did not change
- Scripts are still important via System.import(url)

# Questions

- [x] Is there an initial presentation in RP?

15.05.2018 10min

- [x] Is it intended to have multiple transform/extract/descent scripts?
- [x] How are extract scripts supposed to work (formatting of the code,
  <div class="inline"><lively-script><script>openBrowser('src/client/vivide/components/vivide-view.js', 'c.f. Zeile 274')</script> </lively-script></div>
  )?

# -> Next

- Any hierarchy level in Tree Views