Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a very simple style to the codeblock in the readme #90

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 43 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,52 @@ templates. Spitfire has been the primary template language for
## Example

```html
<html>
<head><title>$title</title></head>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>$title</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}

ul {
list-style: none;
padding: 0;
}

li {
margin-bottom: 10px;
}

a {
text-decoration: none;
color: #3498db;
font-weight: bold;
}
</style>
</head>

<body>
<ul>
#for $user in $users
<li><a href="$user.url">$user.name</a></li>
#end for
</ul>
<div style="width: 80%; margin: 0 auto;">
<h1>Welcome to Spitfire!</h1>
<p>Check out our users:</p>
<ul>
#for $user in $users
<li><a href="$user.url">$user.name</a></li>
#end for
</ul>
</div>
</body>

</html>

```


Expand Down