Skip to content

Support @param syntax in templates #70

Description

@rehmsen

The documentation for Closure Templates has examples of the param syntax:

{template .helloName}
  {@param name: string}
  Hello {$name}!
{/template}

This parser does not seem to support that though - I get:

lexical error: unrecognized character in action: U+0040 '@'

I think an older syntax for the same was to use comments:

/** 
 * @param name
 */

But that is no longer supported by some other parsers we use, and this one which does not support the new one. I think I would be great to add support for this.

I might be able to contribute something - is somebody already aware of this issue or has tried to fix it? Any pointers?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions