You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current example as console.log(parse(....)); // component to parse. is too vague - how / what do I pass as component.
Example content.
## API
### parse
```typescript
import { parse } from "https://deno.land/x/vue_sfc_compiler/mod.ts";
const component = ... // Is this a Vue object, a dictionary, a loaded .vue file?
parse(component)
```
### compileScript
Used to compile a Vue script tag into a whatever...
Example:
```typescript
import { compileScript } from "https://deno.land/x/vue_sfc_compiler/mod.ts";
const x = '<script>console.log()</script>'
compileScript(x)
```
MichaelCurrin
changed the title
Add examples for high-level workflow
Add examples for API and high-level workflow
Feb 11, 2021
In the currently high-level workflow section of the README.md file, it would be also be useful to have examples for each with a code block of just a few lines.
I found these as exported functions at the bottom of the very long 1MB compiler script.
It would be nice to list those all in the README.md
The text was updated successfully, but these errors were encountered: