Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

HTML formatter needs implementing #18

Open
expectocode opened this issue Feb 27, 2018 · 9 comments
Open

HTML formatter needs implementing #18

expectocode opened this issue Feb 27, 2018 · 9 comments

Comments

@expectocode
Copy link
Owner

It's currently very unfinished. It would be very nice to be able to display the saved data in a good-looking page.

@expectocode
Copy link
Owner Author

See #16 for easier reference on the available methods

@bytes-commerce
Copy link

How could I provide HTML/CSS templates and who would implement them? I'm decent with the first both, but not in Python.

@Lonami
Copy link
Collaborator

Lonami commented Aug 7, 2018

So @NopeNopeNope with Python it's fairly easy to replace text with other value (e.g. {MESSAGE} with the message contents). But no need to worry about that since adding that is easy, as long as we know where what information should be added (text, date, etc.). Even example values would be enough. Mostly need help with the design.

@expectocode
Copy link
Owner Author

How exciting! I suggest we use a dedicated templating library like Jinja, and also make the formatting tools a separate program. They don't really belong in the same command, and can cause confusion as we saw earlier on @NopeNopeNope's other issue, with contexts and format-contexts

@bytes-commerce
Copy link

I'd just provide basic templates for each:

  • incoming message
  • incoming image
  • incoming voice message (? needed)
  • outgoing message
  • outgoing image
  • incoming voice message (? needed)
  • Chat header
  • general Chat wrapper

I'd provide them in HTML files along with CSS. Its up to you how you render them, in PHP I'd go with sprintf'ing over it to achieve a correct merging strategy. Is that fine for you guys?

@expectocode
Copy link
Owner Author

Yeah, that sounds good!

@expectocode
Copy link
Owner Author

I'd love to have something that looks like Telegram Desktop, but that's probably going to be quite difficult. I wonder if we could use stuff from Webogram. By the way, it might be easier to discuss development in the telegram group, the username of which is my GitHub username.

@mr-tron
Copy link

mr-tron commented Oct 21, 2018

#92

@DrakeTDL
Copy link

DrakeTDL commented Jun 5, 2019

Any progress on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants