Created
July 4, 2011 02:39
-
-
Save ToddG/1062830 to your computer and use it in GitHub Desktop.
nitrogen framework web page with html5 video tag
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
%% -*- mode: nitrogen -*- | |
-module (mypage). | |
-compile(export_all). | |
-include_lib("nitrogen_core/include/wf.hrl"). | |
-include("records.hrl"). | |
main() -> #template { file="./site/templates/html5.html" }. | |
title() -> "Todd's <b>Html5</b> Page". | |
body() -> | |
[ | |
#panel { style="margin: 50px 100px;", body=[ | |
#span { text="Test Video Below" }, | |
#p{}, | |
%%#html5_video { src="test.ogg", poster="test-poster.png" }, | |
#html5_video { src="http://localhost:8000/test.ogg", poster="test-poster.png" }, | |
#image { image="test-poster.png" } | |
]} | |
]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment