CodeIgniter HTML5 Extensions |
[eluser]adamfairholm[/eluser]
I'm probably going to be in a wheelchair by the time HTML5 is safe to use, but it's fun to play around with at this stage. After poking around CI2.0 I noticed it didn't have any helper functions for HTML5, so as an educational exercise I built some helper extensions to include some of the new HTML5 stuff. Of course, you can always just put the code into the views, but I find myself using a lot of the helper functions in libraries and other places where code is generated from other data. It doesn't have everything, but it does have: <b>Forms Helper Extension</b> Includes new elements like email, url, tel that are generally useless except for on mobile browsers that make use of them, like the iPhone. Also includes a handy helper to generate datalists which play a role in HTML5 forms. <b>Language Helper Extension</b> <p>This has only one function - ruby() - which helps with ruby elements. They're pretty great if you are working with Asian languages.</p> <b>HTML Helper Extension</b> <p>Includes handy helpers to generate <i>video</i> and <i>audio</i> tags with the embedded source list. Also has a canvas function.</p> Get the full documentation here: http://www.adamfairholm.com/code/ci-html5-elements Get the code on GitHub here: http://github.com/adamfairholm/CodeIgnit...5-Elements I'll continue adding to it as HTML5 progresses. I've enjoyed developing it and using it in internal stuff. Hope you find it useful.
[eluser]Philipp GĂ©rard[/eluser]
Nice implementation. Too bad only few browsers (actually in use by a lot of users) support these features. But time will come! |
Welcome Guest, Not a member yet? Register Sign In |