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

[Formatting Bug]: custom directives support? #289

Closed
kukac7 opened this issue Jul 1, 2024 · 3 comments
Closed

[Formatting Bug]: custom directives support? #289

kukac7 opened this issue Jul 1, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@kukac7
Copy link

kukac7 commented Jul 1, 2024

Version

latest

Template before formatting

@hasfield('list')
  <ul>
    @fields('list')
      <li>@sub('item')</li>
    @endfields
  </ul>
@endfield

Template after formatting

Error formatting document.

Expected Behaviour

hi,

is it possible to somehow increase the number of supported directives?
it seems that the https://github.com/log1x/sage-directives composer package is not supported.
it says an error when formatting: Error formatting document.

thanks for the help!

Relevant log output

No response

@kukac7 kukac7 added the bug Something isn't working label Jul 1, 2024
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Aug 31, 2024
@shufo
Copy link
Owner

shufo commented Sep 8, 2024

Currently supported custom directive format is @~~~ with @end~~~. (~~~ must matched with start and end directive)

If sage-directive's @endfield was @endhasfield, it works as expected.

@hasfield('list')
  <ul>
    @fields('list')
      <li>@sub('item')</li>
    @endfields
  </ul>
@endhasfield

@shufo shufo removed the Stale label Sep 8, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Nov 8, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants