Skip to content
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

Correct workflow for customizing things? #167

Closed
oakbarrel opened this issue Aug 11, 2013 · 8 comments
Closed

Correct workflow for customizing things? #167

oakbarrel opened this issue Aug 11, 2013 · 8 comments

Comments

@oakbarrel
Copy link

Hi!

I'm a full time teacher and I really like the potential of Strut to make presentations more interesting!

I'm now creating my first presentation with it and there is one thing I would like to ask:

If I want to make custom (as in hand-coded) changes to certain slides or text-boxes, what is the right way to do that?

I have a presentation open right now. Is there a file on my file system that I can edit to insert a custom class to one of my slides? What would be the right way to do custom tweaks to a presentation that is being created with Strut?

@tantaman
Copy link
Owner

You can make modifications to the final presentation (e.g., adding css, custom html and so on). Unfortunately there currently isn't a way to make such modifications to a presentation while you are still editing it.

After you click "present" to view you presentation you can save that presentation via your browser's "save page as" and edit the raw html after it has been saved to your disk. Does that make sense?

@oakbarrel
Copy link
Author

Yes it makes perfect sense! Let's hope one day we can add custom css/html while still editing the slideshow, but for now the method you outlined is more than usable! Thanks for building such a nice tool!

@oakbarrel
Copy link
Author

I'm still trying to work out a reliable workflow so let me ask this:

If I export to JSON, is it possible to edit the exported JSON file in order to add custom classes to slides? I tried to simply add "class":test to a text box in the JSON file but that was probably not the correct syntax?

I was thinking I could do some initial work first with Strut, then export to JSON and add some custom classes (and also edit the CSS file naturally to make those classes do something) and the import that JSON back to Strut and continue my work in Strut.

Would something like that be possible? If yes, what would be the correct syntax of adding a class to a slide in the JSON file?

@tantaman
Copy link
Owner

I'm adding a feature so you can attach a custom stylesheet and add classes to components. Should be done tomorrow.

@tantaman
Copy link
Owner

not quite done yet, but almost there.

Here is what it is looking like:
css-class
edit-css
add-class

@tantaman
Copy link
Owner

Let me know if this latest update works for you.

@oakbarrel
Copy link
Author

This looks awesome!! I will test as soon as my crazy work streak eases off (too little sleep for a few days now)! Can't wait to use more Strut asap!

@tantaman
Copy link
Owner

tantaman commented Sep 3, 2013

this is technically a duplicate of GH-3 so closing this and posting updates there.

@tantaman tantaman closed this as completed Sep 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants