GithubHelp home page GithubHelp logo

dirty's People

Contributors

dahlia avatar

Watchers

James Cloos avatar

dirty's Issues

include XML files feature request

it would be great to have RawString counterpart to include XML data from a file.
let's say we have RawXMLFile class to inject the file XML data, i.e:

   f1 = open('s01.xml')
   f2 = open('s02.xml')
   xml.root(
       xml.desc('Data from system 01'), xml.data(RawXMLFile(f1)),
       xml.desc('Data from system 02'), xml.data(RawXMLFile(f2)),
   )

of course, now we can create a generator:

   def raw_file(f):
       while True:
           data = f.read(4096) # do not use f.readline
                               # in case of large, one line XML documents
           if len(data) == 0:
               break
           yield RawString(data)

but it would be great if dirty recognized RawXMLFile
and copied the file (f1 and f2 above) without need
of creating RawString instances.

Original issue reported on code.google.com by [email protected] on 7 Oct 2011 at 10:12

Unable to create Meta tags with dashes in fields

It is more likely that I don't know what I am doing or there is a work around 
already, but I can not find it anyway.

Using Python 2.7 (not sure if this matters).

I am trying to put 
<meta http-equiv="refresh" content="15" /> 
in the header.  

The line:
meta( 'http-equiv="refresh" content="5"' ) 
outputs:
<meta>http-equiv="refresh" content="5"</meta>
which is interpreted by Chrome as body text (even though it is not in the 
body).  (sorry I did not check other browsers)

But this:
meta( http-equiv="refresh", content="5" ) 
is a problem for python because a '-' is not allowed in an argument name.

Original issue reported on code.google.com by [email protected] on 6 Oct 2014 at 5:10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.