| @@ 225-234 (lines=10) @@ | ||
| 222 | /** |
|
| 223 | * Método que devuelve el html con la ruta compilada del recurso javascript |
|
| 224 | */ |
|
| 225 | protected function printJs() |
|
| 226 | { |
|
| 227 | if ($this->debug && 0 < count($this->compiled_files)) { |
|
| 228 | foreach ($this->compiled_files as $file) { |
|
| 229 | echo "\t\t<script type='text/javascript' src='{$file}'></script>\n"; |
|
| 230 | } |
|
| 231 | } else { |
|
| 232 | echo "\t\t<script type='text/javascript' src='/js/" . $this->hash . ".js'></script>\n"; |
|
| 233 | } |
|
| 234 | } |
|
| 235 | ||
| 236 | /** |
|
| 237 | * Método que devuelve el html con la ruta compilada del recurso css |
|
| @@ 239-248 (lines=10) @@ | ||
| 236 | /** |
|
| 237 | * Método que devuelve el html con la ruta compilada del recurso css |
|
| 238 | */ |
|
| 239 | protected function printCss() |
|
| 240 | { |
|
| 241 | if ($this->debug && 0 < count($this->compiled_files)) { |
|
| 242 | foreach ($this->compiled_files as $file) { |
|
| 243 | echo "\t\t<link href='{$file}' rel='stylesheet' media='screen, print'>"; |
|
| 244 | } |
|
| 245 | } else { |
|
| 246 | echo "\t\t<link href='/css/" . $this->hash . ".css' rel='stylesheet'>"; |
|
| 247 | } |
|
| 248 | } |
|
| 249 | ||
| 250 | /** |
|
| 251 | * @param string $source |
|