forked from kriswallsmith/assetic
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
126 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Assetic package, an OpenSky project. | ||
* | ||
* (c) 2010-2013 OpenSky Project Inc | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Assetic\Util; | ||
|
||
/** | ||
* Dart Utils. | ||
* | ||
* @author Pierre du Plessis <pdples@gmail.com> | ||
*/ | ||
class DartUtils extends CssUtils | ||
{ | ||
const REGEX_IMPORTS = '/import? (\'|"|)(?<url>[^\'"\)\n\r]*)\1\)?;?/'; | ||
const REGEX_COMMENTS = '/((?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)|\/\/[^\n]+)/'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/Assetic/Test/Filter/fixtures/dart/library/library.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import 'dart:html'; | ||
|
||
librayFunction() { | ||
var msg = query('#msg'); | ||
var btn = new ButtonElement(); | ||
var someThing = new Element.a(); | ||
someThing.href = 'New Cool Link'; | ||
|
||
btn.text = 'Click me!'; | ||
btn.on.click.add((e) => msg.text = 'Dart!'); | ||
document.body.nodes.add(btn); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import "library/library.dart"; | ||
|
||
main() { | ||
librayFunction(); | ||
} |