Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
public
/
postgrest-mithril
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
add util/with_layout.js
master
Bing Sun
hace 5 años
padre
14b9b374c2
commit
175bcf5c3a
Firmado por:
sunb
ID de clave GPG:
F7795F8C590626AB
Se han
modificado 1 ficheros
con
15 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+15
-0
src/util/with_layout.js
+ 15
- 0
src/util/with_layout.js
Ver fichero
@@ -0,0 +1,15 @@
export default config => {
if (typeof config == 'undefined')
config = {}
if (!config.hasOwnProperty('content'))
config = {'content': config}
return {
view: vnode => [
config.prologue,
m('main', config.content),
config.epilogue
]
}
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar