Read JavaScript variables from a file with Python
<p>I use some Python scripts on server-side to compile JavaScript files to one file and also add information about these files into database.
For adding the information about the scripts I now have yaml file for each js file with some info inside it looking like this:</p>

<pre><code>title: Script title
alias: script_alias
</code></pre>

<p>I would like to throw away yaml that looks redundant here to me if I can read these variables directly from JavaScript that I could place in the very beginning of the file like this:</p>

<pre><code>var title = "Script title";
var alias = "script_alias";
</code></pre>

<p>Is it possible to read these variables with Python easily?</p>
