From a6d729e7a6c4d42e9ed52ad48056ddbf75dd6113 Mon Sep 17 00:00:00 2001 From: Bradley Stuart Kirton Date: Wed, 8 Jul 2020 07:21:37 +0200 Subject: [PATCH] Update README to reflect component tags name Update template method input name from date to context as this was a bit confusing --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 711af3e0..b6558f47 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ class Calendar(component.Component): "date": date, } - def template(self, date): + def template(self, context): return "[your app]/components/calendar/calendar.html" class Media: @@ -116,10 +116,10 @@ And voilá! We've created our first component. # Use the component in a template -First load the `django_components` tag library, then use the `component_dependencies` and `component` tags to render the component to the page. +First load the `component_tags` tag library, then use the `component_dependencies` and `component` tags to render the component to the page. ```htmldjango -{% load django_components %} +{% load component_tags %}