-
Notifications
You must be signed in to change notification settings - Fork 12
Add javascripthon #8
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
Conversation
Which I had broken in a previous PR, sorry ;-) I wonder if we could setup some testing. Nice project!
This is giving me some issues as it seems I need to parse stderr too, or it could freeze. |
This seems to work ok. |
I'd still miss a good error message when |
Hi, now I'm proud ;-) |
Wow, great job! I didn't know about javascripthon. Very impressive framework. I'll test asap. |
Excited to be of help. Obrigado for the project. <script lang="py?compiler=pj">
class Component:
def __init__(self):
self['data'] = lambda: { 'test': 2 }
self['components'] = {
'AppLogo':require('~/components/AppLogo.vue')['default'] }
self['computed'] = { 'data': lambda: 2 }
module.exports = Component()
</script> I am using the |
Here's another attempt with nicer syntax thanks to <script lang="py?compiler=pj">
Vue = require('vue')['default']
component = require('vue-class-component')['default']
@component
class MyIndex(Vue):
def __init__(self):
super().__init__()
self['components'] = { 'AppLogo':require('~/components/AppLogo.vue')['default'] }
self['data'] = self.data
def data(self):
return { 'test': 2 }
@property
def my_value(self):
return 3
module.exports = MyIndex()
</script> |
Cool, very interesting approach! I will experiment with this. |
:-)