Created
May 1, 2012 14:42
-
-
Save wvuwebgist/2568421 to your computer and use it in GitHub Desktop.
Show content before, after, or during a certain date & time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%# Show something before May 2nd at 8:30am %> | |
<% show_before 'May 2, 2012 8:30 AM' do %> | |
<p>Your content here<p> | |
<% end %> | |
<%# Show something between May 2nd and May 3rd %> | |
<% show_between('May 2, 2012 8:30 AM', 'May 3, 2012 8:30 AM') do %> | |
<p>Your content here</p> | |
<% end %> | |
<%# Show something after May 2nd at 8:30am %> | |
<% show_after 'May 2, 2012 8:30 AM' do %> | |
<p>Your content here<p> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment