Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Add a top-level only parse option. #3

Closed
mthadley opened this issue Jul 24, 2017 · 1 comment
Closed

Add a top-level only parse option. #3

mthadley opened this issue Jul 24, 2017 · 1 comment

Comments

@mthadley
Copy link
Collaborator

mthadley commented Jul 24, 2017

Add a top level parse option. This means instead of trying to fully parse the source file, we will just parse the templates and their params, and ignore any template content. For certain use cases, this should both make the faster and more robust.

So calling parse might look something like this:

import parse from 'soyparser';

parse(input, {
  type: 'top'
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants