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

Added a filter raw for displaying message with HTML markup #27

Merged
merged 1 commit into from
Jan 14, 2012
Merged

Added a filter raw for displaying message with HTML markup #27

merged 1 commit into from
Jan 14, 2012

Conversation

laupiFrpar
Copy link
Contributor

Hi,

I've needed to display a message with HTML markup. So I propose to add a filter use_raw allows us to displays or not the message with HTML markup.

fixes #26

Best regards,

`flash(type, message, close, use_raw)`

- type is the type of message and must be `info` or `error` or `warning` or `success`
- message is the message to display
- close must be true or false, false by default. This parameter allows to display or not the close button
- use_raw must be true or false, false by default. This paramter allows to display the message using HTML markup

`session_flash(type, close, use_raw)`

- type is the type of message and must be `info` or `error` or `warning` or `success`
- close must be true or false, false by default. This parameter allows to display or not the close button
- use_raw must be true or false, false by default. This paramter allows to display the message using HTML markup
phiamo added a commit that referenced this pull request Jan 14, 2012
Added a filter raw for displaying message with HTML markup
@phiamo phiamo merged commit ffc254f into phiamo:master Jan 14, 2012
@phiamo
Copy link
Owner

phiamo commented Jan 14, 2012

Thanks, looks good, and shouldnt brak anythink as far as i can see

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.

Displaying a session flash with raw filter
2 participants