Homepage: https://theme.roundabout-host.com

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

Add comment

steve0greatness,
created on Wednesday, 2 April 2025, 06:56:15 (1743576975), received on Wednesday, 2 April 2025, 06:56:23 (1743576983)
Author identity: Steve0Greatness <steve0greatnessiscool@gmail.com>

44837631384b726568d7bfa237dfc7d7d972a8a7

themes.py

@@ -7,4 +7,14 @@ xslt = ET.parse("themes.xsl")

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            transform = ET.XSLT(xslt)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            newdom = transform(dom)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            with open("themes.html", "w") as file:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            file.write(str(newdom))
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            file.write("""<!--DO NOT EDIT THIS FILE MANUALLY.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        This file, themes.html, is automatically generated using the Python script: themes.py.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        That script uses 2 other files that you may want to edit instead: themes.xml, themes.xsl.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        * themes.xml includes all data,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        * themes.xsl includes instructions for the Python script on how to render that data into valid HTML.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        You may also want to edit themes.css, which is the stylesheet for this specific page.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        I know all these files are named exactly the same, that's literally just so that they appear next to eachother---it's so nice.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        -->""" + str(newdom))