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

somehow trim whitespace when blocks are placed in attributes #5

Open
arshaw opened this issue May 18, 2010 · 2 comments
Open

somehow trim whitespace when blocks are placed in attributes #5

arshaw opened this issue May 18, 2010 · 2 comments

Comments

@arshaw
Copy link
Owner

arshaw commented May 18, 2010

<meta name='description' content='<? emptyblock('metadescription') ?>' />

....

<? startblock('metadescription') ?>
my value
<? endblock() ?>

.... don't want this ....

<meta name='description' content='
my value
' />

PHPTI NEEDS TO BE SMARTER ABOUT THIS

@SimonSapin
Copy link

According to http://phpti.com/#block-filters , you can write

<? startblock('metadescription', 'trim') ?>
my value
<? endblock() ?>

@arshaw
Copy link
Owner Author

arshaw commented Jul 22, 2010

yeah, good point. but it'd be cool to transparently do this somehow, without the need to reference the trim filter. maybe that would be too hairy though, and this is the ideal solution

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