We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1f3c03 commit f13c03cCopy full SHA for f13c03c
core/views.py
@@ -15,7 +15,7 @@ def posts(request):
15
16
17
class PostsLivewire(LivewireComponent):
18
-
+ template_name = "posts.livewire.html"
19
def mount(self, **kwargs):
20
posts = kwargs.get("posts")
21
return {
@@ -36,6 +36,7 @@ def increment(self, *args):
36
37
38
class HelloworldLivewire(LivewireComponent):
39
+ template_name = "helloworld.livewire.html"
40
message = "Hellowwwww mundo!"
41
42
livewire/views.py
@@ -98,7 +98,6 @@ def get_component_name(self):
98
def get_template_name(self):
99
return self.template_name
100
101
102
def get_context_data(self):
103
mount_result = {}
104
# call mount if exists
0 commit comments