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

"Unused {alias}" error when using deltemplate #15

Open
benmarch opened this issue Jan 16, 2014 · 2 comments
Open

"Unused {alias}" error when using deltemplate #15

benmarch opened this issue Jan 16, 2014 · 2 comments

Comments

@benmarch
Copy link

This only seems to happen when there is a {deltemplate} command, for example:

{namespace some.namespace.main}
{alias some.namespace.include}

{template .subtopicContent}
    {delcall delegate.subtopicContent data="all"/}
{/template}

{deltemplate delegate.subtopicContent autoescape="false"}
    {call include.layout data="all"}
        {param body}
            This is the body of my page.
        {/param}
    {/call}
{/deltemplate}

This works fine (I modified this for the example so please ignore any real syntax errors), and the cmd+click on "include.layout" brings me to the correct template, but there is an error on the {alias} command saying it isn't used. Thanks!

@sajtosnorbert
Copy link

sajtosnorbert commented Jan 2, 2018

Kind of same for me, but for params, a bit annoying to have error markings with deltemplate.
Would be great to have it corrected!

Example:

{delpackage --package--}
{namespace --namespace--}
/**
 * @param myParam
 */
{deltemplate templateName autoescape="strict"}
    <strong>{$myParam}</strong>
{/deltemplate}

@SerCeMan
Copy link
Member

SerCeMan commented Jan 2, 2018

Hi, @sajtosnorbert!

The Non-Dairy-Soy-Plugin is not supported anymore, please check out bamboo-soy, the official Google plugin for soy templates. Although, I'm not sure if they support comment params syntax.

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

3 participants