Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[soyparser] Add a top-level only parse option #37

Open
jbalsas opened this issue Sep 5, 2018 · 0 comments
Open

[soyparser] Add a top-level only parse option #37

jbalsas opened this issue Sep 5, 2018 · 0 comments

Comments

@jbalsas
Copy link
Contributor

jbalsas commented Sep 5, 2018

From Add a top-level only parse option by @mthadley:

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'
});
@jbalsas jbalsas changed the title Add a top-level only parse option [soyparser] Add a top-level only parse option Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant