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

Support for protobuf constructors. #201

Closed
dikmax opened this issue Jan 29, 2020 · 1 comment
Closed

Support for protobuf constructors. #201

dikmax opened this issue Jan 29, 2020 · 1 comment

Comments

@dikmax
Copy link

dikmax commented Jan 29, 2020

Soy allows not only create records, but also protos.

{namespace namespace}

{alias other.namespace.Proto}

{template .render}
  {let $record: record(id: 'id') /}
  {let $protoAlias: Proto(id: 'id') /}
  {let $protoFull: other.namespace.Proto(id: 'id') /}
{/template}

$record assignment is parsed, whereas other two show SoyTokenType.( or SoyTokenType.. expected, got ':'error on colon inside constructor.

@crdev
Copy link
Collaborator

crdev commented Jan 29, 2020

Fixed in #194

@crdev crdev closed this as completed Aug 25, 2020
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

2 participants