Skip to content

Instantly share code, notes, and snippets.

@ToddG
Created July 4, 2011 02:39
Show Gist options
  • Save ToddG/1062830 to your computer and use it in GitHub Desktop.
Save ToddG/1062830 to your computer and use it in GitHub Desktop.
nitrogen framework web page with html5 video tag
%% -*- 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