Skip to content

Commit f85a7da

Browse files
committed
[.gitignore] remove *.html from gitignore to allow for flask templates
1 parent 3c8be2c commit f85a7da

3 files changed

Lines changed: 40 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ rsconnect/
3939
.DS_Store
4040
__pycache__
4141
.ipynb_checkpoints
42-
*.html
42+
4343
rmarkdown-notebook/flights.csv
4444

4545
.venv
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<html>
2+
<head>
3+
<link
4+
rel="stylesheet"
5+
type="text/css"
6+
href="{{ url_for('static', filename='style.css') }}"
7+
/>
8+
</head>
9+
<body class="sans-serif center w-60">
10+
<div class="mt5 ba pa br2 b--black-30 tc">
11+
<h2>🎉 Hello, World! This is Flask on RStudio Connect!</h2>
12+
</div>
13+
<div class="mt5 ba pa br2 b--black-30 tc">
14+
<h2>🚀Access the API endpoint</h2>
15+
<h3><a href="{{ url_for('hello') }}">{{ url_for('hello') }}</a></h3>
16+
17+
<img
18+
class="w-100"
19+
src="{{ url_for('static', filename='api-snippet.png') }}"
20+
/>
21+
</div>
22+
</body>
23+
</html>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<html>
2+
<head>
3+
<link
4+
rel="stylesheet"
5+
type="text/css"
6+
href="{{ url_for('static', filename='style.css') }}"
7+
/>
8+
</head>
9+
<body class="pa">
10+
<div class="ba">
11+
{% for user in users %}
12+
Hello, {{ user.username }} from RStudio Connect! <br />
13+
{% endfor %}
14+
</div>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)