foam-framework / foam-framework/foam

Last line of code doesn't execute in a U2 template

Open
#533 4 comments 0 reactions 1 assignee Claimed by @kgrgreer View on GitHub
Dominant language
JavaScript
Stars
783
Forks
51
PR merge metrics
No merged PRs in 30d

Description

Example:

CLASS({
package: 'foam.demos',
name: 'Test',
extends: 'foam.u2.View',
templates: [
function initE() {/*#U2


((console.log("foo");))

((console.log("bar");))
*/}
]
});

If you run this view, you only see "foo" in the console, "bar" is never outputted. Examining the generated code shows that console.log("bar"); isn't even included.

We should either support this case, or warn if it happens.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.