mirror of
https://github.com/django-components/django-components.git
synced 2025-09-13 01:16:17 +00:00
Fix example in readme
This commit is contained in:
parent
70a2a01400
commit
d7cfb9ae9e
1 changed files with 1 additions and 11 deletions
12
README.md
12
README.md
|
@ -258,17 +258,7 @@ class Calendar(component.Component):
|
|||
}
|
||||
|
||||
template = """
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>My example calendar</title>
|
||||
{% component_css_dependencies %}
|
||||
</head>
|
||||
<body>
|
||||
{% component "calendar" date="2015-06-19" %}
|
||||
{% component_js_dependencies %}
|
||||
</body>
|
||||
<html>
|
||||
<div class="calendar-component">Today's date is <span>{{ date }}</span></div>
|
||||
"""
|
||||
|
||||
css = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue