Skip to content
This repository has been archived by the owner on Aug 12, 2019. It is now read-only.

Commit

Permalink
Use data-lift instead of the class attribute for snippet invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
fmpwizard committed Jan 25, 2015
1 parent cf8327c commit b0a4479
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
11 changes: 5 additions & 6 deletions scala_211/lift_basic/src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Home</title>
</head>
<body class="lift:content_id=main">
<div id="main" class="lift:surround?with=default;at=content">
<body data-lift-content-id="main">
<div id="main" data-lift="surround?with=default;at=content">
<h2>Welcome to your project!</h2>
<p>
<span class="lift:helloWorld.howdy">
Welcome to your Lift app at <span id="time">Time goes here</span>
</span>
<span data-lift="HelloWorld.howdy">
Welcome to your Lift app at <span id="time">Time goes here</span>
</span>
</p>
</div>
</body>
</html>

28 changes: 14 additions & 14 deletions scala_211/lift_blank/src/main/webapp/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Home</title>
</head>
<body data-lift-content-id="main">
<div id="main" data-lift="surround?with=default;at=content">
<h2>Welcome to your project!</h2>
<p>
<span data-lift="helloWorld.howdy">
Welcome to your Lift app at <span id="time">Time goes here</span>
</span>
</p>
</div>
</body>
<head>
<meta charset="UTF-8">
<title>Home</title>
</head>
<body data-lift-content-id="main">
<div id="main" data-lift="surround?with=default;at=content">
<h2>Welcome to your project!</h2>
<p>
<span data-lift="HelloWorld.howdy">
Welcome to your Lift app at <span id="time">Time goes here</span>
</span>
</p>
</div>
</body>
</html>
4 changes: 2 additions & 2 deletions scala_211/lift_mvc/src/main/webapp/show_int.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta content="text/html; charset=UTF-8" http-equiv="content-type" /><title>Home</title></head>
<body class="lift:content_id=main">
<div id="main" class="lift:surround?with=default;at=content">
<body data-lift-content-id="main">
<div id="main" data-lift="surround?with=default;at=content">
<head> <!-- Set the title of the page -->
<title>Show Int Page</title>
</head>
Expand Down

0 comments on commit b0a4479

Please sign in to comment.