2012-06-15
Sinatra 소스코드에 보면 logger는 helpers부분에서 다음과 같이 간단하게 선언되어 있다.
# Access shared logger object.
def logger
request.logger
end
결국 Sinatra에서 logging 처리는 request.logger, 즉 rack의 logger 부분에 일임하는 것이 전부다.
add_action( 'init', 'usefulpa_add_kakao_provider_to_wsl' ); | |
function usefulpa_add_kakao_provider_to_wsl() { | |
if ( function_exists ('wsl_version') ) { | |
global $WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG; | |
$WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG[] = ARRAY( | |
"provider_id" => "Kakao", |
add_filter( 'validate_username', 'usefulpa_validate_username_fix' ); | |
function usefulpa_validate_username_fix( $valid, $username ) { | |
if ( empty($username) ) return false; | |
} |
// main.js | |
// Change Underscore's default delimiters | |
// 'cause ERB-style delimiters aren't my cup of tea | |
// http://documentcloud.github.io/underscore/#template | |
_.templateSettings = { | |
interpolate: /\{\{(.+?)\}\}/g | |
}; | |
var App = (function() { |
## convert HTML POST data to JSON | |
## get the raw post data from the AWS built-in variable and give it a nicer name | |
#set($rawAPIData = $input.path('$')) | |
## first we get the number of "&" in the string, this tells us if there is more than one key value pair | |
#set($countAmpersands = $rawAPIData.length() - $rawAPIData.replace("&", "").length()) | |
## if there are no "&" at all then we have only one key value pair. | |
## we append an ampersand to the string so that we can tokenise it the same way as multiple kv pairs. |
2012-06-15
Sinatra 소스코드에 보면 logger는 helpers부분에서 다음과 같이 간단하게 선언되어 있다.
# Access shared logger object.
def logger
request.logger
end
결국 Sinatra에서 logging 처리는 request.logger, 즉 rack의 logger 부분에 일임하는 것이 전부다.
<?xml version="1.0" encoding="UTF-8"?> | |
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> | |
<channel> | |
<title>블로터</title> | |
<link>http://www.bloter.net/</link> | |
<description>블로터 RSS 서비스 | 최신기사</description> | |
<pubDate>2021-03-31T13:11:12+09:00</pubDate> | |
<lastBuildDate>2021-03-31T13:11:12+09:00</lastBuildDate> | |
<copyright>Copyright © Bloter&Media Inc. All rights reserved.</copyright> | |
<webMaster>[email protected]</webMaster> |