| @@ 206-215 (lines=10) @@ | ||
| 203 | /** |
|
| 204 | * Método que devuelve el html con la ruta compilada del recurso javascript |
|
| 205 | */ |
|
| 206 | protected function printJs() |
|
| 207 | { |
|
| 208 | if ($this->debug && 0 < count($this->compiled_files)) { |
|
| 209 | foreach ($this->compiled_files as $file) { |
|
| 210 | echo "\t\t<script type='text/javascript' src='{$file}'></script>\n"; |
|
| 211 | } |
|
| 212 | } else { |
|
| 213 | echo "\t\t<script type='text/javascript' src='/js/" . $this->hash . ".js'></script>\n"; |
|
| 214 | } |
|
| 215 | } |
|
| 216 | ||
| 217 | /** |
|
| 218 | * Método que devuelve el html con la ruta compilada del recurso css |
|
| @@ 220-229 (lines=10) @@ | ||
| 217 | /** |
|
| 218 | * Método que devuelve el html con la ruta compilada del recurso css |
|
| 219 | */ |
|
| 220 | protected function printCss() |
|
| 221 | { |
|
| 222 | if ($this->debug && 0 < count($this->compiled_files)) { |
|
| 223 | foreach ($this->compiled_files as $file) { |
|
| 224 | echo "\t\t<link href='{$file}' rel='stylesheet' media='screen, print'>"; |
|
| 225 | } |
|
| 226 | } else { |
|
| 227 | echo "\t\t<link href='/css/" . $this->hash . ".css' rel='stylesheet'>"; |
|
| 228 | } |
|
| 229 | } |
|
| 230 | ||
| 231 | /** |
|
| 232 | * @param string $source |
|