IRC log of #novawebdev for Tuesday, 2018-01-30

*** replaceafill has joined #novawebdev09:42
*** mr_german has joined #novawebdev11:27
mr_germangood morning11:33
replaceafillgood morning mr_german11:37
mr_germanreplaceafill, I want to work on something so, I'd like to take an issue from gitlab11:40
replaceafillmr_german, you never showed me anything on the issue you said you'd take11:41
replaceafillmr_german, i mean this:
mr_germanreplaceafill, ok11:42
replaceafillmr_german, have a few minutes to chat? 10-15?12:02
replaceafillmr_german, i have an idea that maybe you can help us with12:02
replaceafillmr_german, so, we have several pieces in our "product" right?12:03
replaceafillmr_german, tendenci12:03
replaceafillmr_german, helios12:03
replaceafillmr_german, and usually a static php site12:03
replaceafillmr_german, let's use aea as an example12:03
replaceafillmr_german, their site is the static one ported to php12:03
replaceafillmr_german, you designed it iirc12:04
replaceafillmr_german, it has some templates split into header, content, footer12:04
replaceafillmr_german, then we have tendenci12:04
replaceafillmr_german, which you know a bit from the nea4or theme days12:04
replaceafillmr_german, the goal is usually to have a tendenci theme12:05
replaceafillmr_german, that "mimics" the static site12:05
replaceafillmr_german, we usually copy the html structure12:05
replaceafillmr_german, and try to reuse the css/js/image assets12:05
replaceafillmr_german, yeah, see the ourrevolutionarlington theme for tendenci12:06
replaceafillmr_german, it tries to recreate the same html you created for the php version12:06
replaceafillmr_german, inserting tendenci pieces inside12:07
replaceafillmr_german, but keeping the html structure12:07
replaceafillmr_german, so far so good?12:07
mr_germanyeah, I think that was hard for you to make it?12:08
replaceafillmr_german, what was hard?12:09
mr_germancreate the theme for tendenci using my html12:09
mr_germano not?12:09
replaceafillmr_german, well, that's the point of this conversation really12:09
replaceafillmr_german, but let's talk helios now12:09
replaceafillmr_german, since helios is split between booth (js) and the django part12:10
replaceafillmr_german, the task becomes a bit harder12:10
replaceafillmr_german, you still try to recreate the html structure12:10
replaceafillmr_german, you did that with your own design12:10
replaceafillmr_german, remember?12:10
replaceafillmr_german, so12:12
replaceafillmr_german, my dream would be to design a theme that works for all the apps (static website, tendenci and helios)12:13
replaceafillmr_german, one advantage is that tendenci and part of helios is django12:13
replaceafillmr_german, and they use django templates (jinja-ish) for that12:13
replaceafillmr_german, jelkner and i have been discussing moving the static sites away from php... again12:14
mr_germanreplaceafill, it would be possible but, hard to get there.12:14
replaceafillmr_german, how do you think it's possible?12:15
mr_germanI meant your dream to create a theme that  works for all the apps or am I wrong?12:16
replaceafillmr_german, well, that's what i'd like to have12:16
replaceafillmr_german, but i have no idea how to get there :S12:16
replaceafillmr_german, but i'd like to do some experiments12:16
replaceafillmr_german, and you know all the components at this point12:17
replaceafillmr_german, you have set up all of them at least once12:17
mr_germanreplaceafill, yes, Id like to work with you on that if it is possible12:17
replaceafillmr_german, it would have to be something like this12:19
replaceafillmr_german, create a very simple app in flask using jinja templates12:19
replaceafillmr_german, just a homepage12:19
replaceafillmr_german, with some dummy navigation links12:19
mr_germanlike nova, elizanbeth guzman12:20
replaceafillmr_german, put the templates/css/js in a separate directory12:20
replaceafillmr_german, like "shared" that you used for your helios branch12:21
replaceafillmr_german, and try to create a tendenci theme from it12:21
mr_germanI understand12:21
replaceafillmr_german, but i'd have to be exactly the same template12:22
replaceafillmr_german, hold on12:22
replaceafillmr_german, see what we did with zOnny for ORA:
replaceafillmr_german, it's mostly html with just line 100 being jinja12:23
mr_germanreplaceafill, yeah, I can see that12:23
replaceafillmr_german, well that and some dynamic parts of the menu12:23
mr_germanits looks like a simple template12:23
replaceafillmr_german, if we could at least share the "base.html" template between the flask app and the tendenci theme12:24
replaceafillmr_german, then we're in business :)12:24
replaceafillmr_german, the ORA theme already uses a separate submodule for the shared assets12:25
replaceafillmr_german, anyway, that's all i wanted to share12:26
replaceafillmr_german, it's just an idea at this point12:26
replaceafillmr_german, if you're interested in spending **** A COUPLE OF HOURS **** experimenting with that12:26
replaceafillmr_german, i think you could get a prototype or even demonstrate it's a dumb idea12:27
mr_germanreplaceafill, using flask?12:27
replaceafillmr_german, yes12:27
replaceafillmr_german, again12:27
replaceafillmr_german, we're assuming that flask's jinja is very similar to django templates12:28
replaceafillmr_german, but if you focus on flask just using something like line 10012:28
replaceafillmr_german, just a {% block content %}{% endblock %}12:28
mr_germanreplaceafill, well, I'll work on the helios issues and then I'll create a simple flask site to start with this12:29
replaceafillmr_german, and maybe one for the page title like the ORA template12:29
replaceafillmr_german, you'll need tendenci too and a theme for it12:29
replaceafillmr_german, but i think you know how to do that already, right?12:29
replaceafillmr_german, cool, but don't waste too much time on it12:30
mr_germanreplaceafill, If I get stuck with something I'll call u12:30
replaceafillmr_german, and it doesn't have to be a full fledged application/theme12:30
mr_germanreplaceafill, k12:30
replaceafillmr_german, just <body><nav><main><h1>hello world</....>12:31
replaceafillmr_german, nav with a few options ofc12:31
mr_germansome colors12:31
replaceafillmr_german, no12:31
replaceafillmr_german, we just care about sharing the html structure at this point12:31
mr_germangot it12:31
replaceafillmr_german, we care about the link to the stylesheet, that's all12:32
replaceafillmr_german, the stylesheet may be emtpy12:32
replaceafillmr_german, same with some js script12:32
replaceafillmr_german, just insert a <link /> to it12:32
replaceafillmr_german, and put an empty .js file in place12:32
replaceafillmr_german, then make tendenci to reuse EXACTLY THE SAME folder12:33
replaceafillmr_german, the flask app and tendenci may add their own templates/css12:33
replaceafillmr_german, but the goal is that they share at least the base.html12:33
replaceafillmr_german, ok, that's all i have12:33
replaceafillmr_german, thanks!12:33
mr_germanreplaceafill, thanks for ur time12:37
mr_germanreplaceafill, one question12:37
replaceafillreplaceafill, yes?12:37
mr_germanreplaceafill,  its about the embassy12:37
replaceafillreplaceafill, yes?12:37
mr_germanreplaceafill, when we should meet or talk about my interview12:38
replaceafillmr_german, does thursday 10 our time work for you?12:38
mr_germanreplaceafill, it works for me12:39
replaceafillmr_german, your interview is next wednesday, right?12:39
replaceafillmr_german, the 7th?12:39
mr_germanat 7:40am12:39
replaceafillmr_german, cool, thursday works then12:39
mr_germanreplaceafill, k12:40
replaceafillACTION goes to get lunch, bb in ~1h14:50

Generated by 2.17.2 by Marius Gedminas - find it at!