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

add Smarty template tokenizer #2

Merged
merged 6 commits into from
May 18, 2017
Merged

add Smarty template tokenizer #2

merged 6 commits into from
May 18, 2017

Conversation

glensc
Copy link
Member

@glensc glensc commented May 15, 2017

asked Smarty own parser/tokenizer to parse .tpl files: smarty-php/smarty#364
no replies so far, so wrote my own.

  • parse .tpl into token stream
  • extract line number context
  • process token list into usable object

NOTE: this requires that all block functions be available when template is parsed. for initial release {t} block handler is present via composer dependency.

@glensc glensc mentioned this pull request May 15, 2017
5 tasks
@glensc glensc force-pushed the smarty-tokenizer branch from 5a2326f to 962ece1 Compare May 15, 2017 19:20
@glensc
Copy link
Member Author

glensc commented May 15, 2017

known issue: line number context is not known

EDIT: fixed

@glensc glensc merged commit 91f157f into master May 18, 2017
@glensc glensc deleted the smarty-tokenizer branch May 18, 2017 17:00
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

Successfully merging this pull request may close these issues.

1 participant